Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 8th, 2005, 04:01 AM
Registered User
 
Join Date: Mar 2005
Location: dehi, delhi, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to steeve_1001
Default Auto submit after 59 seconds

Hello,

I want to hide submit and it should be automatically submitted after 59 seconds instead of click wether users fill out the form or not. Is there any code to set time

<INPUT TYPE="hidden" NAME="submit" VALUE="submit">

Thanks in Advance.:)

hi
 
Old March 8th, 2005, 04:39 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

You can achieve it by using meta http-refresh.
<meta http-equiv="refresh" content="59">

 
Old March 8th, 2005, 01:08 PM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

You could do this with javascript...
Code:
<body onload="setTimeout('document.forms.myFormName.submit();', 59000);">
n.b. you may need to name your submit button something other than "submit" for this to work.

HTH,

Chris

The Following User Says Thank You to ChrisScott For This Useful Post:




Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Submit aftabn10 PHP How-To 1 January 28th, 2007 11:42 PM
Converting Seconds into Nano seconds and viceversa chandu80 General .NET 0 June 4th, 2005 01:18 AM
Run-time Error 59 Aine Catherine Beginning VB 6 0 March 10th, 2005 09:22 AM
chapter 2 ; pp 59 - 62 ritter BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 April 28th, 2004 01:30 AM
auto submit saint ASP.NET 1.0 and 1.1 Basics 1 July 31st, 2003 05:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.