Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

How To Auto Stretch An Iframe?


7 replies to this topic

#1 Nani Cheri

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 370 posts

Posted 01 September 2006 - 11:56 AM

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

Edited by Nani Cheri, 01 September 2006 - 11:58 AM.


#2 CrazyRob

    ITS ALIVE.....MUHHHAAAA

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 534 posts
  • Gender:Male
  • Location:Chippenham UK
  • myCENT:63.10

Posted 01 September 2006 - 02:01 PM

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

#3 Nani Cheri

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 370 posts

Posted 01 September 2006 - 04:16 PM

I don't use frontpage I use Dreamweaver.

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

#4 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 29 May 2008 - 07:28 PM

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

#5 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 07 May 2009 - 07:16 PM

JavaScript to Adjust iframeHow 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

 



#6 k_nitin_r

    Grand Imperial Poobah

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,114 posts
  • Gender:Male
  • Location:Dubai
  • myCENT:50.55

Posted 20 May 2009 - 12:42 PM

@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

#7 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 21 May 2009 - 12:11 AM

New linkHow 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

 



#8 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 24 February 2010 - 06:12 AM

Re: Auto Stretch How To Auto Stretch An Iframe?I've found your article. It didn't help me at all. But found the solution from other searches. This post can help you re your problem: Auto Stretch An Iframe with Javascript Pagecan I ask a question? how did you find this site (trap17dotcom)? is it worth to be a member?-reply by Guy can help




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users