473,220 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,220 software developers and data experts.

<FAQENTRY> window.open methods causes my script crash in Internet Explorer

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.

Oct 25 '05 #1
6 6945
On 25 Oct 2005 01:21:10 -0700, "VK" <sc**********@yahoo.com> wrote:
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.
The script doesn't crash, there's a script error, you should always
cope with script errors.
The Microsoft position (as I got it) is: "Do not use 3rd party popup
blockers".
I think the position should actually be use competent 3rd party
blockers, I think it's likely that either the 3rd party have
deliberately chosen to produce an error so people can catch it, or are
incompetent.
window.showModalDialog method seems not affected by popup blockers and
it doesn't lead to script errors.
It's certainly effected by the popup blockers I use.
As I'm finding this issue high-crucial, I copy this message to the new
post as FAQENTRY.


But you're the first person who's ever asked about it I think? Is it
really frequently asked?

Jim.
Oct 25 '05 #2
VK

Jim Ley wrote:
On 25 Oct 2005 01:21:10 -0700, "VK" <sc**********@yahoo.com> wrote:
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.
The script doesn't crash, there's a script error, you should always
cope with script errors.


You mean to have the whole script in try-catch block? Kill me if it's a
common practice yourselve following.
The Microsoft position (as I got it) is: "Do not use 3rd party popup
blockers".


I think the position should actually be use competent 3rd party
blockers, I think it's likely that either the 3rd party have
deliberately chosen to produce an error so people can catch it, or are
incompetent.


This topic reise from:
<http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/e95c1595d6a9b0d9/ea3d9a9e0e2cc98e?hl=en#ea3d9a9e0e2cc98e>

Should we consider the latest Symantec Norton Antivirus as "uncompetent
3rd party" or should we stay more humble?
window.showModalDialog method seems not affected by popup blockers and
it doesn't lead to script errors.


It's certainly effected by the popup blockers I use.


Could you tell which one it is (as I'm still testing around).
But you're the first person who's ever asked about it I think? Is it
really frequently asked?


I think it will be FAQ of the season. The reason it's not yet:
1) It's almost impossible to catch it at the design mode. You need
feedback from a reasonable amount of your visitors with 3rd party
blockers activated to smell the aches.
2) Error message is random (one of of three listed) so you first think
of script errors rather than of innocent looking window.open

So I think a lot of people already have this issue but just not aware
of it or looking (and asking) in the wrong place.

Oct 25 '05 #3
VK said the following on 10/25/2005 7:01 AM:
Jim Ley wrote:
On 25 Oct 2005 01:21:10 -0700, "VK" <sc**********@yahoo.com> wrote:

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.
The script doesn't crash, there's a script error, you should always
cope with script errors.

You mean to have the whole script in try-catch block? Kill me if it's a
common practice yourselve following.


My approach to window.open problems is not to use it. Then there is no
problem to deal with. If a user wants a new window, most know how. If
they don't, don't try to force it on them.
The Microsoft position (as I got it) is: "Do not use 3rd party popup
blockers".
I think the position should actually be use competent 3rd party
blockers, I think it's likely that either the 3rd party have
deliberately chosen to produce an error so people can catch it, or are
incompetent.

This topic reise from:
<http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/e95c1595d6a9b0d9/ea3d9a9e0e2cc98e?hl=en#ea3d9a9e0e2cc98e>

Should we consider the latest Symantec Norton Antivirus as "uncompetent
3rd party" or should we stay more humble?


If Norton's latest popup blocker crashes the browser, then yes it is
incompetent software. And no, I won't stay humble about it.
window.showModalDialog method seems not affected by popup blockers and
it doesn't lead to script errors.
It's certainly effected by the popup blockers I use.

Could you tell which one it is (as I'm still testing around).

But you're the first person who's ever asked about it I think? Is it
really frequently asked?

I think it will be FAQ of the season. The reason it's not yet:
1) It's almost impossible to catch it at the design mode. You need
feedback from a reasonable amount of your visitors with 3rd party
blockers activated to smell the aches.
2) Error message is random (one of of three listed) so you first think
of script errors rather than of innocent looking window.open


3) Its not a javascript problem, its a popup-blocker problem. If the
browser crashes with the blocker running, but, doesn't crash without the
blocker (using the same exact code), then the problem is the *blocker*
not the code.
So I think a lot of people already have this issue but just not aware
of it or looking (and asking) in the wrong place.


And you are trying to get them to complain in the wrong place yet again?
Question: My popup blocker crashes my browser. What can I do?
Answer: Get a better popup blocker.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 25 '05 #4
VK
Randy Webb wrote:
Question: My popup blocker crashes my browser. What can I do?
Answer: Get a better popup blocker.
It doesn't say on
<http://support.microsoft.com/default.aspx?scid=kb;en-us;888021> that
"there are some bad 3rd party popup blockers (the list follows)".
It simply states that "This issue may occur if a third-party pop-up
blocker is installed on your computer." So it's a global IE failure.
For the moment I did not find one "good" 3rd party blocker thus that
would not reproduce the problem (except IE's own blocker of course).

My approach to window.open problems is not to use it.

So always was mine. But should we just keep in secret that
window.open() method (which is as old as JavaScript itself) is causing
now script errors? It would be a kind of penalization of popup users.
Whatever we may think about popups, penalization for bad development
technique is not our duty or privilege IMHO.

Oct 25 '05 #5
VK said the following on 10/25/2005 2:21 PM:
Randy Webb wrote:
Question: My popup blocker crashes my browser. What can I do?
Answer: Get a better popup blocker.

It doesn't say on
<http://support.microsoft.com/default.aspx?scid=kb;en-us;888021> that
"there are some bad 3rd party popup blockers (the list follows)".
It simply states that "This issue may occur if a third-party pop-up
blocker is installed on your computer." So it's a global IE failure.


It is a global IE failure based on having a 3rd Party popup blocker. It
is not a global IE failure based on any javascript code. That code may
trigger the failure but it is not the cause of that failure. The cause
of that failure is a crappy popup blocker or a crappy browser, not the
js code.
For the moment I did not find one "good" 3rd party blocker thus that
would not reproduce the problem (except IE's own blocker of course).
I would have to guess that AOL's internal popup blocker would have to
be considered a 3rd Party blocker since it is not an IE blocker but
blocks IE popups and I have never had a crash while using it.
My approach to window.open problems is not to use it.


So always was mine. But should we just keep in secret that
window.open() method (which is as old as JavaScript itself) is causing
now script errors?


It's not the code that is causing it. It is either the browser or the
popup blocker. And it tends towards the popup blockers being at fault,
not the browser.
It would be a kind of penalization of popup users.
GOOD! If people start staying away from sites that abuse it, the sites
will stop using it.
Whatever we may think about popups, penalization for bad development
technique is not our duty or privilege IMHO.


And it is the bad development of the popup blockers, not my script, that
is the problem.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 26 '05 #6
VK
<http://www.jibbering.com/faq/#FAQ4_42>
4.42 How do I open a new window with javascript?
New windows can be opened on browsers that support the window.open function
and are not subject to the action of any pop-up blocking mechanism
with code such as...


"Life is a set of forced compomises" :-)
The issue is closed then?

Oct 26 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bert | last post by:
Hello, I'm having some problems with creating a script that works on both Mozilla browsers as IE. I want to change the background color of textareas and input text fields as soon as somebody...
11
by: jesdynf | last post by:
I'm having trouble applying a stylesheet to content I'm generating after the fact. Here's the sample code: <html> <head> <title>CSS/DOM Problem Example</title> <style type="text/css">...
19
by: VK | last post by:
http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/ b495b4898808fde0> is more than one month old - this may pose problem for posting over some news servers. This is why I'm...
6
by: =?iso-8859-2?Q?K=F8i=B9tof_=AEelechovski?= | last post by:
At <http://jibbering.com/faq/index.html#FAQ4_41> IS Microsoft introduced a shortcut that can be used to reference elements which include an ID attribute where the ID becomes a global variable....
11
by: =?ISO-8859-1?Q?G=E9rard_Talbot?= | last post by:
Hello Randy and Jim, I read/glanced through comp.lang.javascript FAQ - 9.5 - 2007-01-23 and have some corrections and additions to submit. In section 4.26 --------------- ...
4
by: VK | last post by:
As per discussion in the thread http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/117e4f3a30f4d1c3 I'm proposing to add new FAQ entry: ...
31
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I modify the current browser window?...
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Why do some posts have <FAQENTRYin them ? -----------------------------------------------------------------------...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.