Hey,
I thought you were somehow managing to do all of this from the parent, but
upon further testing I realize you meant to call the function from the
loaded content.
So, back to normal in IE6/7, but still have the same problem with Netscape.
Curious btw, how come .load() isn't fired in IE, and is required in Moz?
Adam
agent2026 wrote:
>
> Okay, in the parent (in cheap-debug mode):
>
> $(function(){
> $('iframe')
>
> .each(function(){alert('.each()');this.style.height=(this.contentWindow.document.body.scrollHeight)+'px';})
>
> .load(function(){alert('.load()');this.style.height=(this.contentWindow.document.body.scrollHeight)+'px';});
> });
>
> IE7: .load() never fires, but I'm getting an "object required" error now
> for some reason.
>
> IE6: Here it gets interesting - .load() also never fires, but it works
> without errors.
>
> Still doesn't work in Netscape btw. No errors, but it doesn't resize the
> iframe.
>
> Adam
>
>
>
--
View this message in context:
http://www.nabble.com/Anyone-ever-heard-of-this-Netscape-bowser---%29-tf3426039.html#a9568052
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/