aris_datuin
asked on
JSP submitting after a certain time
Hi Experts,
May I ask how to submit a page without clicking a button or whatsoever... just time controlled if possible...
A sample code would be best...
Thanks in advanced experts...! =)
May I ask how to submit a page without clicking a button or whatsoever... just time controlled if possible...
A sample code would be best...
Thanks in advanced experts...! =)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sorry, forgot about the setTimeout. That would work too
Here are some options though..
-You could set the page to refresh to a new URL after N seconds
-You could setup an event handler on mousemove, keydown, etc. and implement a timer there
eg.
var pageStart=new Date()
function onMouseMove()
{
var now=new Date();
var delta=now.getTime()-pageSt
if (delta>60000)
form.submit();
}