Hello,
I have a client of a client who is using IE6 (with the latest update applied) on Windows 2000 Pro (latest update also) trying to view pages on a web site I created, and is having problems with javascript that opens a new window to load a page. He gets a scripting error: no new window opens up, and a scripting error yellow triangle appears at the bottom left of the screen. The error is "Object does not support this property or method".
The line number of the error (line 148, char 4) seems to be the line I'm calling the function that opens the new window.
His security setting in IE is medium. Also, he is able to open up new windows by right-clicking and choosing Open In New Window.
I have tried this same page on other computers seemingly set up the same, and it works fine. Does anyone have any ideas on what this could be?
You can test it out at Click on one of the items like "Company Overview" (that's the shortest one). It should open playdemo.htm in a new window and play a flash presentation.
Here's my function code
And here's how I call the function from the original window:
I have a client of a client who is using IE6 (with the latest update applied) on Windows 2000 Pro (latest update also) trying to view pages on a web site I created, and is having problems with javascript that opens a new window to load a page. He gets a scripting error: no new window opens up, and a scripting error yellow triangle appears at the bottom left of the screen. The error is "Object does not support this property or method".
The line number of the error (line 148, char 4) seems to be the line I'm calling the function that opens the new window.
His security setting in IE is medium. Also, he is able to open up new windows by right-clicking and choosing Open In New Window.
I have tried this same page on other computers seemingly set up the same, and it works fine. Does anyone have any ideas on what this could be?
You can test it out at Click on one of the items like "Company Overview" (that's the shortest one). It should open playdemo.htm in a new window and play a flash presentation.
Here's my function code
Code:
function openNewWin(mydesc, myfile) {
var mypos = mydesc.indexOf("<");
if (mypos > 0)
{
var mynewdesc = mydesc.substring(0,mypos);
}
else
{
var mynewdesc = mydesc;
}
if (myfile.indexOf("playall_") == 0)
{
var myfilelength = myfile.length
var mycategory = myfile.substring(8,myfile.length);
document.frmDemo.democategory.value = mycategory;
myfile = "playall";
}
else
{
document.frmDemo.democategory.value = "";
}
document.frmDemo.demodesc.value = mynewdesc;
document.frmDemo.demofilename.value = myfile;
//get screen resolution and set res to hi or lo
//set to hi by default; hi is > 800x600
childclicked = 1;
YourRes = "hi";
mypage="training/playdemo.htm";
if (screen.width < 1024 && screen.height < 768)
{
YourRes = "lo";
}
// Place the window
var NewWinX=15;
var NewWinY=15;
if (YourRes=="lo")
{
DemoWin =window.open(mypage,'TheNewpop','fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}
else
{
DemoWin =window.open(mypage,'TheNewpop','fullscreen=no, height=700, width=850, toolbar=no,titlebar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
DemoWin.moveTo(NewWinX,NewWinY);
}
}
And here's how I call the function from the original window:
Code:
<span class=linklike onClick='openNewWin("FIN Training Presentations: Fixed Income", "playall_Fixed Income");'>Fixed Income</span>
I appreciate any help!
Thanks,
-Kathy