1. #1
    Ext User
    Join Date
    Apr 2007
    Posts
    22
    Vote Rating
    0
    hahaEr2003 is on a distinguished road

      0  

    Red face can I control iframe's loading in parent html?

    can I control iframe's loading in parent html?


    can I control iframe's loading in parent html?
    I want control iframe's loading in parent html ,just like control div. for examle,I want to show a mask when iframe's src loading,and unmask when loaded,just like control div.
    I try to use el.load(),el.seturl,....etc.
    but I fail!
    so,can I do this?and how?

  2. #2
    Ext Premium Member BernardChhun's Avatar
    Join Date
    Mar 2007
    Location
    Quebec, Canada
    Posts
    831
    Vote Rating
    2
    BernardChhun will become famous soon enough

      0  

    Default


    adding a listener to the iFrame's beforeload event should work:

    Code:
    iframe.on("beforeload", function(){ /*show mask*/}, this, true);
    then on the load event:

    Code:
    iframe.on("load", function(){ /*hide mask*/}, this, true);
    et voila!

  3. #3
    Ext User
    Join Date
    Apr 2007
    Location
    Houston, TX
    Posts
    15
    Vote Rating
    0
    neror is on a distinguished road

      0  

  4. #4
    Ext User
    Join Date
    Apr 2007
    Posts
    22
    Vote Rating
    0
    hahaEr2003 is on a distinguished road

      0  

    Default thank for BernardChhun & neror

    thank for BernardChhun & neror


    thank for BernardChhun & neror
    I try for it ,beforeload don't work,but load works,thanks again.

Thread Participants: 2