There is a documented problem with IE4.0 and window.open that I'm trying to
address in an unusual way. I'm trying to trap the problem in an error
function and then have it instead give someone a plain html link when
appropriate.
I can't seem to make a browser fully reproduce the problem...but I have one
that now dies quietly without opening the window and without popping up an
error message. From there, I've tried to create an error condition by
checking to see if the new window object exists. This is leading to a
really bizarre error message that includes the string 'The callee' (which
you will see in the code below that I'm hunting for this.)
The problem I'm having is trying to figure out how to trap the error in IE4.
Right now, the following code again just dies quietly without the
document.writeln(errorMsg) ever happening. In NS using liveconnect, a
similarly written error function works fine when java throws an exception.
I can't figure out how the parameters are passed in though.
IE4 is supposed to have an onError event handler, but I sure can't seem to
make it go.
I know this email is a bit rambling, but if anyone can give any
suggestions, I'd be grateful.
Kayla
window.onerror=null;
function onerror(msg, URL, lineNum) {
var errorMsg = msg;
if (errorMsg.indexOf("The callee") != -1) {
document.writeln(errorMsg);
return true;
}
}
var newWind;
function createPopup() {
destroyPopup('lwpreConsole_', lwpreConsoleWinNum++);
var newWind = window.open('stringtest.html','lwpreConsole_'
+ lwpreConsoleWinNum++,
"toolbar=no,location=no,menubar=no,scrollbars=yes,status=yes,"
+ "resizable=yes,copyhistory=no,height=450,width=780,"
+ "left=0,top=0");
onError="onerror()";
}
============================================================
Kayla Block 650.526.6103
Engineer [EMAIL PROTECTED]
============================================================
__________________________________________________________________________
To send mail to web-consultants, use the address: [EMAIL PROTECTED]
For usage, send e-mail with "HELP" body to [EMAIL PROTECTED]
Digest subscribers, use the address:[EMAIL PROTECTED]
Visit The Web Consultants Web Site At http://just4u.com/webconsultants