473,503 Members | 1,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

window.open() problem in Firefox

I am using window.open in an AJAX page and it works in both IE and FF but in the
latter the hourglass stays up and both the progress bar and the small animated
circle-of-dots graphic keep on running indefinitely in the new window.

I can press the STOP button to get them to stop, but I'm wondering if there is
something else I can do to get rid of this behavior. The page is most
definitely loading properly and completely.

If it matters what I am writing to the new document is an XML document after
being passed through an XSL sheet. Sometimes the XML doc is large enough to
fill several pages of the viewport, but often it is just a few lines and the
problem is the same regardless.

TIA
Aug 3 '06 #1
5 2039
Hi,

Rick Brandt wrote:
I am using window.open in an AJAX page and it works in both IE and FF but in the
latter the hourglass stays up and both the progress bar and the small animated
circle-of-dots graphic keep on running indefinitely in the new window.

I can press the STOP button to get them to stop, but I'm wondering if there is
something else I can do to get rid of this behavior. The page is most
definitely loading properly and completely.

If it matters what I am writing to the new document is an XML document after
being passed through an XSL sheet. Sometimes the XML doc is large enough to
fill several pages of the viewport, but often it is just a few lines and the
problem is the same regardless.

TIA
How do you write to the pop-up's document? Do you use document.write? If
so, do you close the document when you're done writing?

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Aug 3 '06 #2
Laurent Bugnion wrote:
Hi,

Rick Brandt wrote:
I am using window.open in an AJAX page and it works in both IE and
FF but in the latter the hourglass stays up and both the progress
bar and the small animated circle-of-dots graphic keep on running
indefinitely in the new window. I can press the STOP button to get them to
stop, but I'm wondering
if there is something else I can do to get rid of this behavior. The page is
most definitely loading properly and completely.

If it matters what I am writing to the new document is an XML
document after being passed through an XSL sheet. Sometimes the
XML doc is large enough to fill several pages of the viewport, but
often it is just a few lines and the problem is the same regardless.

TIA

How do you write to the pop-up's document? Do you use document.write?
If so, do you close the document when you're done writing?

HTH,
Laurent
Isn't it amazing how as soon as you give up and post a question you take another
look and the answer is staring you right in the face?

I had...
ocwin.document.close;

....instead of...
ocwin.document.close();

As soon as I added the parenthesis everything worked as expected.

Thanks for the nudge though.

Aug 3 '06 #3
Hi,

Rick Brandt wrote:
Isn't it amazing how as soon as you give up and post a question you take another
look and the answer is staring you right in the face?

I had...
ocwin.document.close;

...instead of...
ocwin.document.close();

As soon as I added the parenthesis everything worked as expected.

Thanks for the nudge though.
Happy to have been of help. What made me thought of it is that IE (being
more forgiving of errors (which is a bad thing (really) (don't you love
nested parenthesis?))) closes the document automatically if you forget
to do so, while Mozilla (being less forgiving (which... yeah)) doesn't.

Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Aug 4 '06 #4

Laurent Bugnion wrote:
[...]
Happy to have been of help. What made me thought of it is that IE (being
more forgiving of errors (which is a bad thing (really) (don't you love
nested parenthesis?))) closes the document automatically if you forget
to do so, while Mozilla (being less forgiving (which... yeah)) doesn't.
I'm not sure you could call that an 'error' as such - in fact you can
probably point the finger at Mozilla here.

The specification is a bit vague, all it says is that document.close()
will force rendering. IE seems to call document.close() when the
script ends and Mozilla doesn't, even though Mozilla renders the
document as if it had (but keeps the 'loading' thing happening).

On the other hand, Mozilla does seem to call document.open() when
document.write() is called - if you try to write to a document without
first calling document.open, should you get an error? The spec doesn't
say so.

<URL: http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-75233634 >
--
Rob

Aug 4 '06 #5
Hi,

RobG wrote:
I'm not sure you could call that an 'error' as such - in fact you can
probably point the finger at Mozilla here.

The specification is a bit vague, all it says is that document.close()
will force rendering. IE seems to call document.close() when the
script ends and Mozilla doesn't, even though Mozilla renders the
document as if it had (but keeps the 'loading' thing happening).

On the other hand, Mozilla does seem to call document.open() when
document.write() is called - if you try to write to a document without
first calling document.open, should you get an error? The spec doesn't
say so.

<URL: http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-75233634 >
You're right. I should have separated the statement "IE is more
forgiving of errors" (still true) and the fact that it closes the
document automatically more clearly.

Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Aug 4 '06 #6

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

Similar topics

1
15994
by: fogwolf | last post by:
First a basic outline of what I am trying to do: I want to have a page spawn a pop-up when you click "submit" on its form. On this pop-up page there will be another form. When you click "submit"...
18
2472
by: Andrew Poulos | last post by:
If I manage to call the following bit of javascript in IE and MZ w = window.open("", "s", 'status=no,resizable=no,width=450,height=450'); I get a window that is not resizable and without a...
5
31202
by: Derek Erb | last post by:
I am banging my head against the wall with this one. The following code snippets work perfectly fine in MSIE6. But produce an error in Firefox and do not work at all. BROWSER.HTM <HTML> .......
8
5619
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
4
3581
by: Csaba Gabor | last post by:
Up until a few weeks ago, javascript code like window.open("http://mydomain.com", "windowName"); would always bring my new or reused window to the top, with focus. Lately, Firefox (Deer park...
13
22146
by: tochiromifune | last post by:
Hello The window.open method brings my window to the top only if it is new. If it's being reused, the window does not come to the foreground (with IE 6 it does). Is there a new way in...
4
10303
by: Andre | last post by:
With Firefox 1.5+, I used the following code to close a window/tab: === <html><head> <script language="javascript" type="text/javascript"> function closeWindow() { window.open('','_parent','');...
4
3208
by: arajunk | last post by:
In Firefox this opens a full size window (maximized) . In IE it opens the partial window requiring user to click restore (upper right) to maximize. What am I missing ? var...
6
2023
by: Howard Rifkin | last post by:
Hi, I my Javascript I popup an authentication window using the command; unamePasswdWindow = open("auth.html","","width=500,height=100"); This works fine in IE, and in Firefox 2.x on...
4
9807
by: deBaer | last post by:
Hi! For an in-house web application (it will only be deployed on Firefox browsers with JavaScript turned on), I need to open a preview window (which needs to be a separate window, even if...
0
7072
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
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6979
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
5570
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
4666
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...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.