This topic is locked

SetInterval() SYNTAX ERROR

8/13/2010 9:46:18 AM
ASPRunnerPro General questions
G
goffj1 author

I am trying to "auto refresh" data on web page every 2 minutes.

I found an earlier reference - SetInterval('window.location.reload()',120);

to be placed in the javascript event.
I keep getting a "Syntax error on Line 1".

A
ann 8/13/2010

Hi,
try the following code (JavaScript Onload event on the Events tab):

setInterval('window.location.reload()',120);
G
goffj1 author 8/13/2010



Hi,
try the following code (JavaScript Onload event on the Events tab):

setInterval('window.location.reload()',120);



That's where I'm getting the syntax error -

Sergey Kornilov admin 8/13/2010

Function names are case sensitive in Javascript.
setInterval is right while SetInterval is wrong. Make sure case is correct.

G
goffj1 author 8/13/2010



Function names are case sensitive in Javascript.
setInterval is right while SetInterval is wrong. Make sure case is correct.


I tried typing and cut & paste but still get the syntax error.

Sergey Kornilov admin 8/13/2010

Probably something else is wrong.
Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.