Jump to content

Dynamic iframe useing php


whare

Recommended Posts

Hi All

Right here is one to make you think lol now I carnt use <? include 'filename.php' ?> coz when you click a link in the included file it opens up into a new window where as an iframe opens in the frame

with that in mind is there away to have the iframe update its size acording to how big the included file is Im asking this as one of my files will end up growning so I would like the frame to grow with it so that I dont have a scroll bar at the side

Any ideas?

If you dont no away using Iframe (or using include) is there anyother way todo it that i have not said about?????
Link to comment
Share on other sites

Perhaps today is another of those days when senility has taken charge but; if your goal is to avoid having a scroll bar, the answer is NOT having the iframe size increase with the size of the file. Think about it, once the iframe 'grows' larger than the screen a scroll bar will appear.

Making an iframe expand with file size is, I believe, accomplished via javascripting; that being the case, as it appears that the visual presentation is important to you, might I suggest you look at this...

http://www.dyn-web.com/dhtml/iframes/


Lite...
Link to comment
Share on other sites

Thank yu for the link

Just to clear somthing up with youits not the main scroll bar thatis at the right hand side of the screen it the scroll bar on the iframe that i do not wish to see

I wil have a look at the link and see what I can get out of it

Thanx
Whare
Link to comment
Share on other sites

here is more what you are looking for...

http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm

Pay attention to this paragraph...
[quote]
*All external pages loaded into the iframe must be from the same domain as the page the iframe tag is inserted in. Setting the iframe's src to an external site such as "http://www.google.com" will not work, since the script cannot probe and detect the height of pages from external domains.
[/quote]

Lite...
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.