Actually, I am calling it all from the parent. You can see it at
youngisrael-stl.org ; look at the wood-grain calendar (in Hebrew) on the
right. You don't have to be able to read it, but on a slow computer you can
see it come up with scroll bars then re-adjust the size. '.load()' doesn't
fire in IE6; the iframe is loaded before $(document).ready so .load would
fire before the code is executed. It does fire for me in FF, since the
iframe is loaded afterward. I don't have IE7, so I don't know if it works. I 
hope it does.

Trying to figure out FF: if you look at the
this.contentWindow.document.body.scrollHeight after the iframe is loaded
(try adding a button that has 
.click(function(){alert($('iframe')[0].contentWindow.document.body.scrollHeight})
or something like that) does it have a height?


agent2026 wrote:
> 
> 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, .load() isn't fired in IE, and everything still works without
> it (other than NS). Is it necessary?
> 
> 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#a9573331
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to