Hi There
I am having problems with a page loading up in a window.I get SYNTAX errors on line 10 char 4 and OBJECT EXPECTED on line 40 char 1.
Here is the code as from the page:
============================================================
<HTML>
<head>
<script language="JavaScript">
<!--
function revdetectIE()
{
var RevVersion = 0;
var fso;
try
{
fso = new ActiveXObject("VoiceControl.ReallyEasy"
}
catch(errorObject)
{
var iMyWidth;
var iMyHeight;
//gets top and left positions based on user's resolution so hint window is centered.
iMyWidth = (window.screen.width/2) - (365 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
iMyHeight = (window.screen.height/2) - (250 + 25); //half the screen height minus half the new window height (plus title and status bars).
window.close()
window.open( "freephone.jsp?download=true", "", "height=500,width=730,scrollbars,resizable,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight )
return false;
}
var RevVersion = fso.RevVersion;
window.close()
opener.GoLink( unescape(opener.varAction) + "=" + unescape(opener.varData) );
}
//-->
</script>
</head>
<body onLoad="revdetectIE()">
<div align="left">
<font face="Arial" color="ff0000" size="3"><b>
Please<br>
Wait...
</b></font>
</div>
</body>
</HTML>
============================================================I think it has something to do with the try/catch function but i am not sure - the page is supposed to detect whether the user has installed a certain program , if not then it takes them to a download page , otherwise it loads up the program. I have no ideas on what to put in as a substitute for the try catch function - and are there any other ways to do away with the errors and still keep the try catch function???
Thanks
Nick
I think it has something to do with the try/catch function but i am not sure - the page is supposed to load into the same window and detect whether the user has installed a certain program , if not then it takes them to a download page , otherwise it loads up the program. I have no ideas on what to put in as a substitute for the try catch function - and are there any other ways to do away with the errors and still keep the try catch function??? Thanks Nick
I am having problems with a page loading up in a window.I get SYNTAX errors on line 10 char 4 and OBJECT EXPECTED on line 40 char 1.
Here is the code as from the page:
============================================================
<HTML>
<head>
<script language="JavaScript">
<!--
function revdetectIE()
{
var RevVersion = 0;
var fso;
try
{
fso = new ActiveXObject("VoiceControl.ReallyEasy"
}
catch(errorObject)
{
var iMyWidth;
var iMyHeight;
//gets top and left positions based on user's resolution so hint window is centered.
iMyWidth = (window.screen.width/2) - (365 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
iMyHeight = (window.screen.height/2) - (250 + 25); //half the screen height minus half the new window height (plus title and status bars).
window.close()
window.open( "freephone.jsp?download=true", "", "height=500,width=730,scrollbars,resizable,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight )
return false;
}
var RevVersion = fso.RevVersion;
window.close()
opener.GoLink( unescape(opener.varAction) + "=" + unescape(opener.varData) );
}
//-->
</script>
</head>
<body onLoad="revdetectIE()">
<div align="left">
<font face="Arial" color="ff0000" size="3"><b>
Please<br>
Wait...
</b></font>
</div>
</body>
</HTML>
============================================================I think it has something to do with the try/catch function but i am not sure - the page is supposed to detect whether the user has installed a certain program , if not then it takes them to a download page , otherwise it loads up the program. I have no ideas on what to put in as a substitute for the try catch function - and are there any other ways to do away with the errors and still keep the try catch function???
Thanks
Nick
I think it has something to do with the try/catch function but i am not sure - the page is supposed to load into the same window and detect whether the user has installed a certain program , if not then it takes them to a download page , otherwise it loads up the program. I have no ideas on what to put in as a substitute for the try catch function - and are there any other ways to do away with the errors and still keep the try catch function??? Thanks Nick