I'm working on part of a larger project, and in trying to debug one
aspect, I've got a small test file to work with.
The code is practically identical (all important aspects match word for
word) to the larger project, which works fine in IE and Firefox so far,
but my little test fails in IE, and I cannot figure out why. http://geekforhire.org/tests/window_open_onload.html
It's supposed to open the window, change the background color, and add
a word to the body.
In IE, it never makes it to the callback function, as if the onload
isn't firing. Is there some quirk of events I'm unaware of?
It should be noted that the code also fails in Safari, but I expected
that as the original project fails in Safari as well (this all started
in an attempt to find a working solution for Safari as well).
So basically, how can I make it fire the onload for all 3 browsers? 2 2714 cg****@gmail.co m said the following on 8/10/2006 3:02 PM:
I'm working on part of a larger project, and in trying to debug one
aspect, I've got a small test file to work with.
The code is practically identical (all important aspects match word for
word) to the larger project, which works fine in IE and Firefox so far,
but my little test fails in IE, and I cannot figure out why.
http://geekforhire.org/tests/window_open_onload.html
It's supposed to open the window, change the background color, and add
a word to the body.
It opens a new window, turns the background color gray, and adds the
word "blah" to the body in IE7.
But, your code has more problems than just that.
So basically, how can I make it fire the onload for all 3 browsers?
"all 3 browsers"? Would that be Konqueror, K-Meleon and Opera? Or would
it be ICEBrowser, Pythia and Amaya?
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
It opens a new window, turns the background color gray, and adds the
word "blah" to the body in IE7.
I didn't get back here earlier to reply, I found some help elsewhere
and fixed it. The problem is I had the onload addevent after the
..close, which is what triggers the load in Safari and IE.
So basically, how can I make it fire the onload for all 3 browsers?
"all 3 browsers"? Would that be Konqueror, K-Meleon and Opera? Or would
it be ICEBrowser, Pythia and Amaya?
Firefox, IE, and Safari, obviously, since those are the 3 I explicitly
mentioned.
Ah, the beauty of context. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: HarveyB |
last post by:
I would like to generate non-modal popup windows from
ASP.Net code-behind. I have tried using Client Side
scripting like "function Test(){
window.open('test.htm',_blank,
'height=200,width=400,status=no,toolbar=no,
menubar=no,location=no resizable=no
scrollable=no');
but I can't seem to invoke the client side script from
within a Server...
|
by: Tery Griffin |
last post by:
Hi all,
I¹ve been away from Javascript for awhile and am rusty, but this is too
simple not to work! I¹m on a Mac, and usually use the Safari browser. I
have a very basic web page in a frame. All it does is trigger a Perl
script. Works great in Safari, does not work in IE or Netscape. In IE, the
onLoad just doesn¹t seem to fire. I¹ve...
|
by: David McCulloch |
last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it.
Why not?
(Don't ask why I simply did not open the window with the new size....my
original problem was how to open a new window with maximized dimensions!)
FYI, I uploaded the same code to:
http://tosasoft.com/test/open.htm
...
|
by: petermichaux |
last post by:
Hi,
I'm hoping for a reason I'm wrong or an alternate solution...
I'd like to be able to dynamically include some javascript files. This
is like scriptaculous.js library but their solution is broken in
Firefox 1.5.0.1 on OS X. What happens with the Scriptaculous library is
this
In the html document the author only has to include one...
|
by: kloppie |
last post by:
Hi there,
im working on a page which causes me problems - the page contains of a
couple of controls where the user can choose some options for a Report.
When the user then clicks a button "Submit" the server-side code saves
the users selected options into Session-variables and then registers a
startup-clientscript. This script calls the...
| |
by: RobG |
last post by:
There has been a bit of work done to get an init() function to run when
the DOM is complete but before all the images have been downloaded. The
idea is to kickoff init() scripts when all the elements are there but
not wait for large images.
Below is a script which uses 3 different techniques, one each for IE,
Safari and Mozill/Opera 9. ...
|
by: Mark Anderson |
last post by:
Hi, I have this in an external JS library:
/////////////////////////
function addMyEvent(){
var obj;
if(document.attachEvent) {
obj = document.getElementsByTagName('img');
for (i=0;i<obj.length;i++) {
obj.attachEvent('ondrag', noDrag);
}
|
by: judacris |
last post by:
I've seen the threads here about molding 2 divs in a centered fashion. but I can't seem to solve this thing.
my blogger blog is functioning well on my site for now, but the blog feed (left) and the sidebar (right) doesn't center
here's the css i'm modifying to center it. i apologise for the mess.
<html>
<head>
<title>cris-kun's 'Blog -...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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. ...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
| |
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...
|
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...
|
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...
|
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...
| | |