Nov 21, 2009

How To Auto Stretch An Iframe?

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > Others

How To Auto Stretch An Iframe?

Nani Cheri
Hello,

I have this website I'm working on which has an iframe were all the links in my menus etc go to. All of that content I'v put in a table. The iframe itself (on my index page) is in a table to. But not every page I linked in the iframe is the same height. So would like to know if there is a solution that works to actually let the iframe automatically be resized to the page that loads in it. I just want the iframe on my index.html page to stretch automatically, so that I dont have to change the widths and all that stuff if I updated my pages, that load in the iframe. I dont want to use scrollbars so thats why I need it to expand automatically to the contents size.

Can anyone help me with this, bet it isn't that hard to do, but I can't seem to let the codes work in my site, that I found in google.

Thanks

this is my site: http://www.nanicheri.trap17.com

Comment/Reply (w/o sign-up)

mxweb
go into frontpage rightclick on the iframe click on the iframe properties button and then hit the checkbox that says resizable in browser and click ok

Comment/Reply (w/o sign-up)

Nani Cheri
I don't use frontpage I use Dreamweaver.

Hello does anybody knows how to do this, gotta be somebody?????

Comment/Reply (w/o sign-up)

FeedBacker
Replying to Nani Cheri
<iframe src="http://yoursiteurl"
width="100%"
height="100%"
scrolling="no">
</iframe>

Comment/Reply (w/o sign-up)

(G)Ben Faust
JavaScript to Adjust iframe
How To Auto Stretch An Iframe?

Here's a post I found that might help. This requires only that the page inside the iframe be on the same domain as the page loading it. If that's not the case, it gets a lot more complicated.

http://www.kaali.co.uk/article-Cross-bowser-iframe-auto-resize-script-94.htm

Hope that helps.

-reply by Ben Faust

 


Comment/Reply (w/o sign-up)

k_nitin_r
@iGuest

Hi!

I get a 404-Not Found for the link you've sent across, but I get the idea you're suggesting - putting in some Javascript that can get the width of the document and re-size the iFrame accordingly. It's been only about 2 weeks since you've posted the link so I'm surprised the page went *poof*!

The original poster's query is from way back in 2006, so I doubt it would be of much use if I were to write it up and post it here. If anyone does still need the solution though, holler back on this thread and I'll work it out.

Regards,
Nitin Reddy

Comment/Reply (w/o sign-up)

(G)Craig
New link
How To Auto Stretch An Iframe?

I went to that site and after using the search I found the article myself:

http://www.Kaali.Co.Uk/index.pl?art=94

-reply by Craig

 


Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)


Searching Video's for auto, stretch, iframe
See Also,
advertisement


How To Auto Stretch An Iframe?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com