www.webdeveloper.com
Results 1 to 5 of 5

Thread: Detecting iframe load… jQuery

  1. #1
    Join Date
    Sep 2009
    Posts
    146

    Detecting iframe load… jQuery

    Hey,

    I have a billing page that uses an iframe for transaction processing. The user will click in that iframe about 3-4 pages. What I’m looking for is the iframe to auto adjust to the height of the inner contents.

    I have figured out how to get the height, but when I bind the load event it only triggers on first load, its not triggering when the user goes from page 1 to 2 or 3…

    Any ideas?

    Thanks

  2. #2
    Join Date
    Mar 2004
    Posts
    369
    You could put body onload events in the pages that get loaded in the iframe?

  3. #3
    Join Date
    Sep 2009
    Posts
    146
    Thanks sneakyimp, but I didn’t have access to the contents of the iframe (3rd party billing)

    I never was able to find a solution, I had to stick with scroll bars. Using JS you can do almost anything to a same domain page but different domain offers little option.

  4. #4
    Join Date
    Mar 2004
    Posts
    369
    Try binding to some other iframe event maybe? Like onAfterUpdate or onBeforeUpdate or onReadyStateChange ?

    Another possibility would be polling in a very tight loop (like every 10 milliseconds) to see if the innerHTML has changed or something.

  5. #5
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,114

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles