<html><div style='background-color:'><DIV class=RTE>
<P>Thanks for you input Paul.</P>
<P>What I think I will attempt is an Ajax call on the page refresh. I can get the page to refresh, and if I build a string, with all my form variables in, and then push that to a waiting .asp page, I should be able to save the details of the form, without the user knowing it.</P>
<P>Wish me luck.......<BR><BR></P></DIV>
<DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
<DIV></DIV>From: <I>Paul Novitski <paul@juniperwebcraft.com></I><BR>Reply-To: <I>"\[JavaScript List\]" <javascript@LaTech.edu></I><BR>To: <I>javascript@LaTech.edu</I><BR>Subject: <I>Re: [Javascript] Auto-submit form every X minutes</I><BR>Date: <I>Tue, 30 Jan 2007 09:32:48 -0800</I><BR>>At 1/30/2007 09:01 AM, Alan Easton wrote:<BR>>>I am wanting to auto-submit a form every x mins. I have the <BR>>>following code.<BR>>><BR>>><script type="text/javascript"><BR>>>function reFresh() {<BR>>> document.form.submit();<BR>>>}<BR>>>window.setInterval("reFresh()",10000);<BR>>></script><BR>>><BR>>>However, this is an ASP page, and I have 4 submit buttons, each <BR>>>performing different actions on the page. The page gets submitted
<BR>>>to itself, and I grab the name of each button and perform something <BR>>>different.<BR>>><BR>>>I would like to simply add a auto-save, so is there anyway I can <BR>>>use JS to auto submit one of those buttons that I already have, <BR>>>like instead of it being clicked, it is captures in an onsubmit <BR>>>event or something.<BR>><BR>><BR>>I suppose you could invoke the click() method on the button of your <BR>>choice.<BR>>http://developer.mozilla.org/en/docs/DOM:element.click<BR>><BR>>Also don't forget you can create and modify hidden input elements on <BR>>the fly to feed whatever values you need to the server on submit.<BR>>http://www.w3.org/TR/html4/interact/forms.html#hidden-control<BR>><BR>>Regards,<BR>><BR>>Paul<BR>>__________________________<BR>><BR>>Juniper Webcraft
Ltd.<BR>>http://juniperwebcraft.com<BR>><BR>>_______________________________________________<BR>>Javascript mailing list<BR>>Javascript@LaTech.edu<BR>>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></FONT></BLOCKQUOTE></div><br clear=all><hr>MSN Hotmail is evolving – check out the new <a href="http://g.msn.com/8HMBENUK/2734??PS=47575" target="_top">Windows Live Mail</a> </html>