[Javascript] How to call the setTimeOut()

Selvaraj, Murugan (Indsys) Murugan.Selvaraj at geind.ge.com
Tue Jun 4 10:25:46 CDT 2002


Hi

I am using the below java script to check whether the applet is downloaded
or not.window.jVueLoaded checks the applet download.
And also i am calling the setTimeOut() function to call the scriptOverlay
function till the applet is downloaded. Here first time it is going to the
else part.That means going alert("not loaded") is printing. But the
setTimeOut() function is not calling again. I think passing the parameter in
the setTimeout('scriptOverlay('+s+')',3000); could be the problem .
Does any one check the setTimeout('scriptOverlay('+s+')',3000); function?



function scriptOverlay(serverPath)
{
	var  s = serverPath;
		if (window.jVueLoaded)
		{
			var s = serverPath;
			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(s);
			japplet.setFile(serverPath);
			japplet.addOverlay(file2);
		}
		else if (!window.jVueLoaded)
		{
			setTimeout('scriptOverlay('+s+')',3000);
			alert("not . ..loaded");
		}
}


"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system."




More information about the Javascript mailing list