View Full Version : iFrames
SDP2006
06-28-2003, 12:34 AM
Can someone explain the purpose of inline frames? :thumbsup:
Nightfire
06-28-2003, 01:23 AM
to help create dynamic content without having the whole site in frames? but as you're using/learning php, there is no need to use iframes as you can create dynamic content with php
jflowers
06-28-2003, 05:59 PM
Iframes can be very useful in conjunction with PHP and Javascript. Generate an <iframe></iframe> container with a local page for the src property and play with the values of the other properties to see what each one does.
The iframe essentially creates a browser-in-browser window in the parent document complete with the correct html base (relative references are correct) and links that can be followed.
There are plenty of gotchas involving history (back arrow) and Javascript access to the included document's properties when it is remote (different domain). Nonetheless, a fixed width/height iframe still adds plenty to your php arsenal, particularly in a content management system that relies to any extent on tables.
I have seen plenty of DHTML code that is based on an iframe in a <DIV></DIV> container.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.