473,418 Members | 5,105 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,418 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 6957
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.