1 (edited by gilbertsavier 2009-07-27 09:48)

Topic: SetTimeout() invalid argument in INTERNET EXPLOER

Hi,

I  having trouble with a piece of code that is throwing an Invalid Argument error in IE only.

Code:
setTimeout('callGA(\'' +url +'\')', 1000);


The method is declared as follows.
Code:
function callGA(GAurl) { do something }


Through alerts and other debugging the invalid argument is the "callGA(url)" argument that is being passed into setTimeout(). I am sure I am just doing something silly but any help would be really appreciated.

Re: SetTimeout() invalid argument in INTERNET EXPLOER

setTimeout(function(){callGA(url)}, 1000);