AJAX Forums

html form to automatic submission

This is a discussion on html form to automatic submission within the XHTML and CSS forums, part of the Beginners AJAX category; how do i get html form to automatically submit every 20 min? Amount: do i put that script inside of the form tage like...


Go Back   AJAX Forums > Beginners AJAX > XHTML and CSS

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Old 04-11-2007, 07:41 AM   #1 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 1
Rep Power: 0 austin b is on a distinguished road
html form to automatic submission

how do i get html form to automatically submit every 20 min? Amount: do i put that script inside of the form tage like
__________________
austin b is offline   Reply With Quote
Old 04-11-2007, 10:11 AM   #2 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 1
Rep Power: 0 sathish4000 is on a distinguished road
you can use javascript to do that. create a function that submits the form. read the link below to know how to do it. once that is there, at the end of the function, put a timer such astimerID = setTimeout("functionToSubmitForm()", 1200000);the 1200000 is 20 mins in milliseconds. 1 sec = 1000 ms. this will activate the function after 20 mins. but initially to get it started, in body taghere is the link to submit form using javascript:http://www.javascript-coder.com/java...m-submit.phtml
__________________
sathish4000 is offline   Reply With Quote
Old 04-11-2007, 02:03 PM   #3 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 1
Rep Power: 0 DNA-Groove is on a distinguished road
Add this script to the end of the HTML where this form is in:window.setTimeout('document.forms[0].submit()', 1200000);
__________________
DNA-Groove is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
AJAX Jobs : AJAX form submission by vipermedia admin AJAX Freelance Jobs 0 09-09-2008 06:01 PM
javascript code submission form aktarerz JavaScript 0 06-17-2007 09:21 PM
need help getting info from a HTML form to a PHP file? Jason The Wizard XHTML and CSS 1 06-05-2007 11:24 AM
html or xhtml form gentle1 XHTML and CSS 1 05-18-2007 09:42 AM
Is there a way to set up an HTML form to send the results to an XML file? John H XML and XSLT 1 05-11-2007 01:24 PM


All times are GMT -4. The time now is 07:23 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
Copyright ©2006 - 2008, AJAXwith.com