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 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
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.
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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"...
|
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...
|
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>
.......
|
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...
|
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...
| |
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...
|
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','');...
|
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...
|
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...
|
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...
|
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...
| |
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,...
|
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...
|
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,...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |