-
22 May 2007 6:38 AM #1
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?
-
22 May 2007 7:33 AM #2
adding a listener to the iFrame's beforeload event should work:
then on the load event:Code:iframe.on("beforeload", function(){ /*show mask*/}, this, true);
et voila!Code:iframe.on("load", function(){ /*hide mask*/}, this, true);
-
22 May 2007 8:53 AM #3
-
26 May 2007 4:12 AM #4
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.


Reply With Quote