473,387 Members | 1,619 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,387 software developers and data experts.

frame "onload" fires only first time in NN?

TPG
I'd like a Javascript function I have written to be invoked whenever
*any* new document is been loaded into a particular frame (i.e I don't
control the incoming document's BODY tag). Under MSIE5.5, I've found
that the ONLOAD handler attribute of the corresponding frame element
is invoked *every* time a new document is loaded into that frame.
This works fine for me.

Under NN6.2, however, I find that the same ONLOAD handler attribute
fires only the *first* time a new document is loaded - and never
subsequently.

I have tried inserting a trigger via scripts that set the "onload"
propery of the frame-element and the frame-window objects, but under
NN6.2 neither causes the onload handler to be invoked after the
initial load.

I have thought of (and wasted a lot of time implementing) several
ingenious but fruitless attempts at workarounds - and now I am ready
to admit that I need some expert help.

TPG
Jul 20 '05 #1
1 3655
TPG wrote on 24 Nov 2003:
I'd like a Javascript function I have written to be invoked
whenever *any* new document is been loaded into a particular
frame (i.e I don't control the incoming document's BODY tag).
Under MSIE5.5, I've found that the ONLOAD handler attribute of
the corresponding frame element is invoked *every* time a new
document is loaded into that frame. This works fine for me.

Under NN6.2, however, I find that the same ONLOAD handler
attribute fires only the *first* time a new document is loaded
- and never subsequently.

I have tried inserting a trigger via scripts that set the
"onload" propery of the frame-element and the frame-window
objects, but under NN6.2 neither causes the onload handler to be
invoked after the initial load.

I have thought of (and wasted a lot of time implementing)
several ingenious but fruitless attempts at workarounds - and
now I am ready to admit that I need some expert help.


According to the HTML 4.01 specification, there is no 'onload'
intrinsic event for FRAME elements, only the BODY and FRAMESET
elements. This means that Internet Explorer isn't implementing the
specification properly (what a surprise). I would think the only
reason why Netscape would allow it is because the Frame object is
basically the window object.

Perhaps someone else could suggest a way around this.

Mike

--
Michael Winter
M.******@blueyonder.co.uk.invalid (remove ".invalid" to reply)
Jul 20 '05 #2

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

Similar topics

3
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...
3
by: George Hester | last post by:
Nothing. The applet does what it is supposed to do but onload never fires. Any suggestions what may be the problem here? Thanks. -- George Hester __________________________________
4
by: Viken Karaguesian | last post by:
Hello all, I have a question. I trying to run two Javascripts on my webpage, both of which need a <body onload> command. They are as follows: <body onload="runMe()"> <body...
6
by: pierre.bru | last post by:
hi, I encounter troubles with frames :( witht he folowing script in the _top page function walk(_frames) { for(var i=0; i<_frames.length; i++) { var frame = _frames; alert(frame.name);
1
by: lwhitb1 | last post by:
I have been trying to load a javascript function from the body onload html tag, but I only want the function to load the first time the page is loaded: I have investigated but haven't found...
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
4
by: sam | last post by:
Hi all, When I use the HTML tidy tool in Firefox I see the following warning which I want to get rid of . I cleared all the errors and warnings it showed except for this one. I am not able to...
1
Cristian Pinheiro
by: Cristian Pinheiro | last post by:
Hello guys, I was playing with Image Thumbnail Viewer (ITV) and found one problem, see http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm for more details and how it works. Now the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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...

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.