Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts

    onload event handler not functioning unless refreshed

    I have an iframe that's content is written to from code in the top window, it is blank until the user clicks the button to populate the frame. the body tag and the onload event handler are written to the frame along with the rest of the page content onclick. Since the page didn't technically load the function doesn't get called. If I refresh the browser it then loads the page properly. I tried calling the function with the onclick command that loads the frame but still no luck. Any way to fix this?

  • #2
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    OK I'm lame. I just forgot to specify the iframe id when calling the function from the onclick on the top window.

    frameId.doThis();

    Thanks Anyway.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •