iframe loading indicator {ajax style}?

Discussion in 'JavaScript' started by wordlinkz, Aug 21, 2007.

  1. #1
    Hello

    Is it possible to show an ajax style indicator when my iframe is getting loaded?

    I hope my question is clear
     
    wordlinkz, Aug 21, 2007 IP
  2. garazy

    garazy Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi Wordlinkz,

    You should be able to check for variables in the IFRAME being loaded from the parent window. For example, in the IFRAME you could have a onload="loaded()" function which sets a variable isLoaded=true; or something like that.

    From the parent window you could have a looping function (use setTimeout) to test for the child isLoaded == true whilst it isn't you could show a loading image ajax style.

    Gary
     
    garazy, Aug 31, 2007 IP