| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: May 2004
Posts: 10
|
Dynamic iFrame...
Hi, I was wondering if anybody has a dynamic iFrame script that works in IE and Mozilla to make the height of the iFrame expand to fit the content inside it without a scrollbar. I've tried a few existing ones and they all have problems, thanks! DJC |
|
|
|
|
|
#2 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,240
|
Doesn't that defeat the object of an iframe? Why not just use an ordinary div if it doesn't need to be scrollable? Or am I missing something here? That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: May 2004
Posts: 10
|
Because I have some elements on the main page containing the iframe that need to be updated constantly and if I used normal divs I wouldn't be able to update one page and have all content pages contain the update. Thanks DJC |
|
|
|
#5 (permalink) | |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 2,930
|
Quote:
Er… yes, you would. PHP modularisation should be your new mantra. Run a search for php "server-side includes". It'll revolutionise your build/development workflow and you'll never go back to flat markup. .e.g. On my own site, almost every part of the page is contained within its own php document. A skeletal/templated document is created that brings the parts together to form one, consistant, complete web page. The events section on my site is the most frequently updated part of the site. It is contained within its own document and contains only the markup for that section of the page's. It is updated separately in order to keep the listings fresh and in date. Whenever the events section document is updated, any page that includes it will also show the updated version. Simple as. |
|
|
|
|
#8 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,240
|
I remember that one Loading images into a page I started reading up on it but got bored - http://www.fusebox.org/ That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
#10 (permalink) | |
|
Magazines™
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,344
|
Quote:
NO NO Yes its the methodology of using includes. It help you design and build better applications. Its not so much a hands-on product* but an approach. *There are modules built for inclusion into projects etc |
|
|
![]() |