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

BODY onLoad not fires!

Hello!

I noticed a very strange behavior an I cannot work it around. Id
appreciate any help on this, as it's driving me nuts...

I have a WinXP SP1 computer with MSIE 6. It has Flash plugin version 7
installed. I have a frameset, and one of the documents in frames has
<BODY onLoad="..."> handler and an Flash object. To diagnose the
problem, I put <BODY onLoad="alert('a');"> statement. And... the code is
not run! But only when:

* There is a Flash object on the page. If I remove the Flash movie, the
code fires.
* The document is opened for the first time in this window - if I click
the link to this document once - it loads, but the code is not fired. I
click it again, it loads again, and then the code is fired!
* The document is in a rame. If opened alone, the code always works.
* The document is opened in MSIE 6. In Netscape 7.2, it works OK. My
friend who also has MSIE sees the same problem, so it's not the problem
of my particular computer.

The whole thing makes me feel like maybe this particular Flash movie
somehow disables onLoad event, or maybe my JavaScript code in other
frames disables it? But how is this possible? What can be the cause of it?

Thanks in advance,
Michau.

Jul 23 '05 #1
2 1610
VK
Is it your flash movie? Can you look inside of it?

body.onLoad fires up when all page elements reported their state to be OK,
Error, or Abort, which means that whatever could be loaded is loaded, and
whatever couldn't - screw it.
If the movie inits extra server downloads (scenes, url verification, etc.)
then onLoad may be compromised.
And yes, ActiveScript inside the flash movie can affect too.
Jul 23 '05 #2
Unfortunately, it's not my Flash movie :( But yes, it has ActiveScript
in it and in fact it tries to call some JavaScript function by opening
an URL of "javascript:functionName()" form. Maybe that's the cause?

Regards,
Michau.

VK wrote:
Is it your flash movie? Can you look inside of it?

body.onLoad fires up when all page elements reported their state to be OK,
Error, or Abort, which means that whatever could be loaded is loaded, and
whatever couldn't - screw it.
If the movie inits extra server downloads (scenes, url verification, etc.)
then onLoad may be compromised.
And yes, ActiveScript inside the flash movie can affect too.


Jul 23 '05 #3

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

Similar topics

1
by: Robert Oschler | last post by:
I have an frame in one of my documents (not a frameset document). The top level document has an "onload" handler in the BODY tag. I have found that if the frame is unable to navigate to the...
5
by: Emmanuel Papillon | last post by:
Hello. I've got a page with sound through a swf file, working with an animation with preloaded JPEG files (animated through use of setTimeout). I'm preloading the JPEG files through Javascript...
2
by: Brian | last post by:
Hi all. I have a bunch of pages that reference an external script from the head section. I'd like to add additional <script> elements to the pages' bodies, but I can't edit the pages...
2
by: sonic | last post by:
Hi, I have some code attached to window.onload event and if there is a missing flash file on the page for example, the browser (MSIE in my case) displays "1 item(s) remaining" message, and since...
2
by: laredotornado | last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to have my Javascript function execute from the BODY's "onload" method, but if there is already an onload method defined, I would...
5
by: Patient Guy | last post by:
I have this in a document: <body onload="a_function(this);"> In an (external) script file, I define a_function() as follows: function a_function(obj) { // surprise errant coding here
4
by: Jason | last post by:
Hi, Here's the scenario: I have a web application that has window A and window B. A user has both window A and B open - window A is in the foreground and window B is behind it. If the...
5
by: mazdotnet | last post by:
Hi, I have a master file with the following setting <body runat="server" id="Body"> and in the .cs I have Body.Attributes.Add("onload", "menuCurrentPage('current','navlist');"); Now in one...
2
by: WGW | last post by:
Hello all, I need another set of eyes cause it just isn't working, no matter how identical I make it. The initRotator function works when called by itself, but when adding another function, only the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...

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.