That's sort of along the lines of what I was doing before(
href="http://www.nabble.com/-%21jQ----But-need-help%3A-%22Object-doesn%27t-support-this-property-or-method%22-tf3413795.html">see
here ). Same result though, can't get it to work in IE and I get the same
error: "Object doesn't support this property or method".
Adam
Danny Wachsstock wrote:
>
> What I've had to do is:
>
> $('iframe.autoheight')
>
> .each(function(){this.style.height=(this.contentWindow.document.body.scrollHeight+40)+'px';})
>
> .load(function(){this.style.height=(this.contentWindow.document.body.scrollHeight+40)+'px';});
>
> in my $(function()... code
> It seems that IE loads the iframe content before document ready fires, so
> setting the height works, but FF loads it after, so at document ready the
> height is zero and I need to set the height after the iframe loads. With
> this code in FF the iframe flickers, once to height zero then to its final
> height, but it works for me.
>
> Danny
>
--
View this message in context:
http://www.nabble.com/Anyone-ever-heard-of-this-Netscape-bowser---%29-tf3426039.html#a9551308
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/