I'm trying to rewrite the existing window using javascript. This
works fine in IE- but in Mozilla, after I call a window.open, Mozilla
starts wandering around like an alshiemers patient and bumping into
doors.
Specificly, Mozilla seems to be losing my... functions. Or
variables. Except, I've tried alerts with dummy variables, and it
seems to find THEM just fine...
Does Mozilla start unloading existing memory right after a
document.open call? As currently structured, my script calles an open,
then skips aroudn through functions, performing a series of
document.writes before closing.
Would this problem go away if instead of performing that nonlinear
series of writes, it performed a series of additions to a string and I
just did one open/write/close at the end? (Doign so would be a neither
major nor minor alteration, so I'm asking before attempting it.)
Theological question: Who is 'right' here against the ruler of how
javascript is SUPPOSED to perform? Have I simply been benefittign from
IE's tardy/nonexistant memory cleanup, or is Mozilla overeager?
(assuming, again, it is memory cleanup I'm running into.)
Any help appreciated. I don't think I'm using anything beyond
Javascript 1.2.
-Derik 3 1979 Re********@aol. com said: I'm trying to rewrite the existing window using javascript. This works fine in IE- but in Mozilla, after I call a window.open, Mozilla starts wandering around like an alshiemers patient and bumping into doors.
Specificly, Mozilla seems to be losing my... functions. Or variables. Except, I've tried alerts with dummy variables, and it seems to find THEM just fine... Does Mozilla start unloading existing memory right after a document.ope n call? As currently structured, my script calles an open, then skips aroudn through functions, performing a series of document.write s before closing. Would this problem go away if instead of performing that nonlinear series of writes, it performed a series of additions to a string and I just did one open/write/close at the end? (Doign so would be a neither major nor minor alteration, so I'm asking before attempting it.)
Theological question: Who is 'right' here against the ruler of how javascript is SUPPOSED to perform? Have I simply been benefittign from IE's tardy/nonexistant memory cleanup, or is Mozilla overeager? (assuming, again, it is memory cleanup I'm running into.)
Any help appreciated. I don't think I'm using anything beyond Javascript 1.2.
I consider Mozilla to be right, but I doubt that the standard is that
specific. The first thing that a window.open() call does, at least in
Mozilla, is to invoke window.clear(), so yes, you'll want to accumulate
your output and do a single document.write( ). Re********@aol. com wrote: I'm trying to rewrite the existing window using javascript. This works fine in IE- but in Mozilla, after I call a window.open, Mozilla starts wandering around like an alshiemers patient and bumping into doors.
For the record:
"Alzheimer’ s (AHLZ-high-merz) disease is a progressive brain
disorder that gradually destroys a person’s memory and
ability to learn, reason, make judgments, communicate and
carry out daily activities."
<URL:http://www.alz.org/AboutAD/WhatIsAD.asp>
Please be a little more circumspect in the description of your
browser-related problems.
--
Rob
Lee wrote: The first thing that a window.open() call does, at least in Mozilla, is to invoke window.clear(), so yes, you'll want to accumulate your output and do a single document.write( ).
I did that- which makes my script much neater under the hood, thanks--
but continued to experience the same problem.
Guess what worked?
Omitting the explicit document.open() and letting mozilla use the
one implicit in document.write( ).
*throws tantrum*
WHHHHHHHYYYYYYY YYYYY? Why why why why WHY?
...why? I hate voodoo-scripting. "I'm not sure WHY it worked,
but when I put a space BEFORE the semi-colon..."
Why?
no, seriously, why?
-Derik This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: David List |
last post by:
I'm having a problem using different properties of the document object
in the example javascripts in my textbook with browsers that identify
themselves as using the Mozilla engine. One example of these
problems is using document.layers. I have Google'd for examples of how
to use the document object specifically with Mozilla, but I cannot
find anything that explains why my problems occur. Could anyone here
see through the included example...
|
by: Greg |
last post by:
The following code works fine on Mozilla but generates an error* on IE,
when the button calling the function is pressed and the slideshow is
either on the first slide or last slide. * I can't remember the exact
error and I'm on Linux/Mozilla at the moment, but I think it had a problem
with the object model?!?
The slideshow has a stack of div tags and the buttons are used to change
the z-order. Each div contains two other divs: one with a...
|
by: kj |
last post by:
This problem is driving me nuts. The code at the end of this post
below works fine with IE, but fails with Mozilla. You can see it
in action at
http://tinyurl.com/2jvo3
With Mozilla 1.4 and 1.6, the function msg works fine if it's
installed as an onclick handler for the button, but fails as an
onload handler for the page. The error is "console has no properties",
and is triggered by the line.
|
by: Nicolás Lichtmaier |
last post by:
Hi, some time ago I've written an article about this issue. It explain
some differences in Explorer's and Mozilla's JavaScript/DOM. It has
recently changed its URL, This is the new one:
http://www.reloco.com.ar/mozilla/compat.html
Bye!
PS: I hope it's useful to someone. I would appreciate any comments and
suggestions!
|
by: Johan |
last post by:
Hi,
I've been working on the following piece of code and it works fine in IE
and Opera, dut keep getting the same error in Firefox. Can anyone tell
me what's wrong with this code? What I'm trying to do is rewrite the
left (navigationframe) and load a page on the right (mainframe).
tia,
Johan
| |
by: nick |
last post by:
I have the following code:
var w=window.open('popup.htm','','width=400,height=400');
w.opener = this;
var img = w.document.getElementById('pic');
However, the img variable is always null in Mozilla Firefox. But it works
well in IE.
|
by: Erik Steffl |
last post by:
I am trying to create a simple custom web spider using mozilla and
javascript, the basic functionality is to open a website and then
manipulate it using DOM (possibly opening links etc.).
it seems like pretty easy task to do, the only pr0oblem is that I
can't figure out how to wait for the website to load - I use mozilla
security settings to be able to open the window and mainpulate it:
var w = window.open("http://google.com", "google...
|
by: Asterbing |
last post by:
Hello,
Here is a page which contains an "evoluated" (to distinguish-it from the
simple one) way to hear sound on a html page event. From my memory, it
worked under all major browsers, but didn't succeed these last days.
I've just tried it today under IE6, Netscape 7, Mozilla 7 and Opera 1.6.
And it only works under IE.
Could you try, please. Is it the same for you ?
|
by: pitstop10 |
last post by:
I use cutehtml as these are my starting days with Javascripts. The script generated by CuteHTML works in IE and Opera. It does not however work in Mozilla. its a slideshow of images. The problem with Mozilla is that the page loads and the slideshow never loads giving me a static blank area where the slideshow should have loaded.
I am pasting the script below.
<script language="JavaScript">
<!--
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |