Results 1 to 2 of 2

Thread: iframe loading time.

  1. #1
    Join Date
    Apr 2008
    Location
    Little Office!
    Posts
    80
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default iframe loading time.

    We have a page and under that we are calling an iframe which is taking a lot of time to load.

    what we want to do is change the text under the page once the iframe is loaded.

    so... the iframe is actually a PDF and we want to display the text... please wait your PDF is being generated.

    once the iframe is loaded... we want to say... "your PDF has been loaded."

    Is this possible??

    Thanks

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    <body onload="document.getElementById('some_id').innerHTML='please wait your PDF is being generated' ">
    <iframe src=your PDF onload="document.getElementById('some_id').innerHTML='your PDF has been loaded' "></iframe>
    </body>

    And, of course, you should put your div somewhere, with id="some_div".
    ===
    Arie Molendijk.

Bookmarks

Posting Permissions

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