Hi guys
The following code works just fine in Netscape on MacOS and Windows. But in
Explorer on MacOS and Windows it throws a type mismatch error at the point
marked with the comment ³// bug out at this point². (The functions that are
called, but not listed here work fine in both Netscape and Explorer in this
and other contexts, so I can confidently discount them as the source of any
error.)
I have also tried just a plain and simple ³window.open()² command with
appropriate parameters, but to no avail. Explorer just does not seem to like
the command. But that is just plain stupid... Microsoft can¹t possibly be
wrong, it must be me that is screwing up.
Any help will be most appreciated.
All the best
Ian
var bulletinSignupW indow
function displayBulletin Signup () {
var theURL = "bulletinsignup .htm";
var winName = "Bulletin Signup";
var features = "scrollbars=yes ,";
features += "location=n o,";
features += "toolbar=no ,";
features += "menuBar=no ,";
features += "directories=no ,";
features += "status=no, ";
features += "resizable=no," ;
features += "width=500, ";
features += "height=500 ,";
features += "left=30,";
features += "top=30";
bulletinSignupW indow =
openDisplayWind ow(bulletinSign upWindow,theURL ,winName,featur es);
}
function openDisplayWind ow (windowRef,cont entURL,windowNa me,features) {
var whichBrowser = checkBrowser();
var nullWindow;
switch (whichBrowser) {
case "Netscape":
nullWindow = undefined;
break;
case "Explorer":
nullWindow = null;
break;
default:
nullWindow = undefined;
break;
}
if (windowRef == nullWindow) {
windowRef = window.open(con tentURL,windowN ame,features);
if (windowRef != nullWindow) {
windowRef.focus ();
}
else {
alert("The " + quoteString(win dowName,SQUOTE) + " window cannot be
opened. You might be low on memory.");
}
} ³// bug out at this point²
else {
windowRef.focus ();
}
return windowRef;
}
The following code works just fine in Netscape on MacOS and Windows. But in
Explorer on MacOS and Windows it throws a type mismatch error at the point
marked with the comment ³// bug out at this point². (The functions that are
called, but not listed here work fine in both Netscape and Explorer in this
and other contexts, so I can confidently discount them as the source of any
error.)
I have also tried just a plain and simple ³window.open()² command with
appropriate parameters, but to no avail. Explorer just does not seem to like
the command. But that is just plain stupid... Microsoft can¹t possibly be
wrong, it must be me that is screwing up.
Any help will be most appreciated.
All the best
Ian
var bulletinSignupW indow
function displayBulletin Signup () {
var theURL = "bulletinsignup .htm";
var winName = "Bulletin Signup";
var features = "scrollbars=yes ,";
features += "location=n o,";
features += "toolbar=no ,";
features += "menuBar=no ,";
features += "directories=no ,";
features += "status=no, ";
features += "resizable=no," ;
features += "width=500, ";
features += "height=500 ,";
features += "left=30,";
features += "top=30";
bulletinSignupW indow =
openDisplayWind ow(bulletinSign upWindow,theURL ,winName,featur es);
}
function openDisplayWind ow (windowRef,cont entURL,windowNa me,features) {
var whichBrowser = checkBrowser();
var nullWindow;
switch (whichBrowser) {
case "Netscape":
nullWindow = undefined;
break;
case "Explorer":
nullWindow = null;
break;
default:
nullWindow = undefined;
break;
}
if (windowRef == nullWindow) {
windowRef = window.open(con tentURL,windowN ame,features);
if (windowRef != nullWindow) {
windowRef.focus ();
}
else {
alert("The " + quoteString(win dowName,SQUOTE) + " window cannot be
opened. You might be low on memory.");
}
} ³// bug out at this point²
else {
windowRef.focus ();
}
return windowRef;
}
Comment