I already posted about this, but it was a bit of a half-hearted post and (big
surprise) no one replied.

So let's try this again...

Here's what I need to do:

I am using an iframe on my web site to display other pages on my site. So, I
have full control over the parent page and the page in the iframe. I would
like to use only the browser's main scroll bar for scrolling the content.
So, if a very long page loads into the iframe, I need jQuery to expand the
height of the iframe to enclose the content and prevent the iframe from
displaying a scrollbar. I did find this functionality implemented using
vanilla JS, but the code is not cross-browser compatible.
(http://www.dyn-web.com/dhtml/iframes/height.html)

I gave it a go using jQuery and didn't get very far (I've never used jQuery
before). Here's what I came up with:

parent page: http://pastie.caboo.se/25487
child page (iframe content): http://pastie.caboo.se/25488

The code I came up with really doesn't work. I tested it in Safari and FF
and got various undesired results (scroll bar in iframe doesn't disappear,
Safari sizes iFrame height larger/smaller than FF, etc...).

So, consider this second post my whole-hearted plea for help. My deadline
looms
-- 
View this message in context: 
http://www.nabble.com/Scripting-Iframes-tf2745384.html#a7659820
Sent from the JQuery mailing list archive at Nabble.com.


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

Reply via email to