Tutorials to .com

Tutorials to .com » Asp » Encoding » Automatically refresh the page, it does not allow users to press Enter to submit the data!

Automatically refresh the page, it does not allow users to press Enter to submit the data!

Print View , by: iSee ,Total views: 8 ,Word Count: 230 ,Date: Fri, 29 May 2009 Time: 8:43 PM

If the page to automatically refresh, but the page Request.Form, so usually there is a prompt box, and the need for users to submit data to determine, it is not automatically updated. As for the monitor or the stock show is not user intervention is very important to be able to resolve the following issues:

<Script Language="JavaScript">
<! --
var limit = "0:60" / / definition of refresh time

if (document.images) (
var parselimit = limit.split (":")
parselimit = parselimit [0] * 60 + parselimit [1] * 1
)
function beginrefresh () (
if (! document.images)
return
if (parselimit == 1) (
InputDate.action = "TypeAlert.asp" / / here the name of the page, do not forget the outside should have a Form, using hidden space needed to keep the page data Request.Form!
InputDate.submit ()
)
else (
parselimit-= 1
curmin = Math.floor (parselimit/60)
cursec = parselimit% 60
if (curmin! = 0)
curtime = curmin + "hours" + cursec + "seconds after the re-brush on this page!"
else
curtime = cursec + "seconds after the re-brush on this page!"
window.status = curtime
setTimeout ( "beginrefresh ()", 1000)
)
)

window.onload = beginrefresh
//-->
</ Script>

This should be added to the above <HEAD>! Oh thank the Arab-Israeli】 【User


Asp Script encoding Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.