[Javascript] error calling the setTimeOut()

TomMallard mallard at serv.net
Wed Jun 5 11:50:52 CDT 2002


Oooops, forgot the single quotes around the function in settimeout()

setTimeout('scriptOverlay(serverPath)',3000);

tom
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of TomMallard
Sent: Wednesday, June 05, 2002 9:47 AM
To: javascript at LaTech.edu
Subject: RE: [Javascript] error calling the setTimeOut()


I just wouldn't do it that way...get rid of s, only use serverPath
instead...

function scriptOverlay(serverPath)
{
		if (window.jVueLoaded)
		{
			alert("loaded");
			var japplet = window.document.applets["JVue"];
			//var file1 =
'http://codas-dev.indsys.ge.com/servlet/MxAutoVueServlet?BOId=53077.56785.90
97.13349&BOName=000214769&BOType=CDS_Typ_Orders&BORevision=1&FOformat=generi
c&FOfilename=/u01/CODAS/others/orders/26906.txt&Vault=Orders_2000_1_6&User=M
urugan.Selvaraj&Mode=true';
			var file2 =
'http://codas-dev.indsys.ge.com/overlay/inv.wmf';
			alert(serverPath);
			japplet.setFile(serverPath);
			japplet.addOverlay(file2);
		}
		else if (!window.jVueLoaded)
		{
			setTimeout(scriptOverlay(serverPath),3000);
			alert("not . ..loaded");
		}
}

tom
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Selvaraj, Murugan (Indsys)
Sent: Wednesday, June 05, 2002 8:31 AM
To: javascript at LaTech.edu
Subject: RE: [Javascript] error calling the setTimeOut()


Hi Tom

As you told , i have implemented the below in my jsp code.

It was working some time back. But now it is giving the error "STack over
flow"

I think the problem could be on calling the
setTimeout('scriptOverlay('+s+')',3000);

While entering in to the else loop ,i am getting the above error.

Is there any problem in the setTimeOut() method?

Pls help me


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list