BODY onLoad not fires!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michal Pleban

    #1

    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.

  • VK

    #2
    Re: BODY onLoad not fires!

    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.


    Comment

    • Michal Pleban

      #3
      Re: BODY onLoad not fires!

      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:fun ctionName()" form. Maybe that's the cause?

      Regards,
      Michau.

      VK wrote:[color=blue]
      > 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.
      >
      >[/color]

      Comment

      Working...