Hi, i was just wondering if it's possible to auto-refresh a page without deselecting options i an HTML form?
I have a select form in HTML that collects data from a database and insert them into the select form as options. If i run a normal refresh function in javascript:
function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod) ;
}
<body onload="JavaScript:timedRefresh(2000);">
The page refreshes but if i have selected one option and the page refreshes every 2 seconds my selected option wil disappear and i will not be able to do some action on that option.
When you do a normal refresh in firefox the selected options is not being deselected.
Has anyone faced this problem before?
Best regards
Last edited by qnstner; 02-10-2010 at 06:56 AM. Reason: little more explanation
in firefox i can use meta refresh without deselecting options but it won't work in fullscreen mode (it should).
in IE the meta refresh works in fullscreen mode but it deselects my options.
arrrg
Hi qnstner,
All I know one can't keep selected options
after a page refresh, regardless of browser window state.
There are no guarantee.
But probably we could use page to page parameter passing,
like through cookie (not familiar with),
or through the URL (GET params).
okey! i've found out that it is browser dependant, and with meta refresh in firefox it works, but not with javascript. But i would like it to work in fullscreen in firefox to.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks