V
VK
I'm using window.open method in my script to open poup window. Recently
Internet Explorer users reported that the script crashes on their
machine with different runtime errors.
See the bug:
<http://support.microsoft.com/default.aspx?scid=kb;en-us;888021>
The statement like
myPopup = window.open(args);
gives you runtime error and halts the script execution *if a 3rd party
popup blocker is installed and active*. The runtime error can be one of
following (average % from 100 runs):
1. "The callee (server [not server application]) is not available and
disappeared;
all connections are invalid. The call did not execute." - 80%
2. "The RPC server is unavailable" - 15%
3. "Unspecified error" - 5%
On the first attempt on the fresh page the first error always comes
first. 2nd and 3rd errors are appearing sporadically if you tortue the
same page long enough.
Only try-catch block allows you to prevent the script execution abort:
try {
myPopup = window.open(args);
}
catch (e) {
// popups blocked by a 3rd party
}
The Microsoft position (as I got it) is: "Do not use 3rd party popup
blockers". With 82% market share and a global epidemie of anti-popups
from everywhere it means that within a year or less pupup usage will be
limited to the intranet area where you can admin the enviroment.
window.showModalDialog method seems not affected by popup blockers and
it doesn't lead to script errors.
As I'm finding this issue high-crucial, I copy this message to the new
post as FAQENTRY.
Internet Explorer users reported that the script crashes on their
machine with different runtime errors.
See the bug:
<http://support.microsoft.com/default.aspx?scid=kb;en-us;888021>
The statement like
myPopup = window.open(args);
gives you runtime error and halts the script execution *if a 3rd party
popup blocker is installed and active*. The runtime error can be one of
following (average % from 100 runs):
1. "The callee (server [not server application]) is not available and
disappeared;
all connections are invalid. The call did not execute." - 80%
2. "The RPC server is unavailable" - 15%
3. "Unspecified error" - 5%
On the first attempt on the fresh page the first error always comes
first. 2nd and 3rd errors are appearing sporadically if you tortue the
same page long enough.
Only try-catch block allows you to prevent the script execution abort:
try {
myPopup = window.open(args);
}
catch (e) {
// popups blocked by a 3rd party
}
The Microsoft position (as I got it) is: "Do not use 3rd party popup
blockers". With 82% market share and a global epidemie of anti-popups
from everywhere it means that within a year or less pupup usage will be
limited to the intranet area where you can admin the enviroment.
window.showModalDialog method seems not affected by popup blockers and
it doesn't lead to script errors.
As I'm finding this issue high-crucial, I copy this message to the new
post as FAQENTRY.