This topic is locked
[SOLVED]

  Auto Refresh Page

1/24/2011 9:18:12 PM
ASPRunnerPro General questions
G
GerryT author

I have tried to use javascript to refresh the page, but all it does is show the loading and seems to be in a continous loop. ASPRUNNER 6.3
Javascript onload event on the Events tab of the page
SetInterval('window.location.reload()', 200000);

J
jmclain 1/24/2011

I use the following in JavaScript OnLoad Event to auto refresh a page after 60 seconds . . .



function timedRefresh(timeoutPeriod) {

setTimeout("location.reload(true);",timeoutPeriod);

}

timedRefresh(60000);
G
GerryT author 1/25/2011

Thanks, I must be doing something wrong because it does not refresh. Should all of that be on one line?

Admin 1/25/2011

GerryT,
try the following

setTimeout("location.reload();",60000);


This code needs to be added to JavascriptOnLoad event.
PS. function names are case-sensitive. setInterval is right, SetInterval is wrong

G
GerryT author 1/27/2011

resolved.