Saturday, June 7, 2008

IFRAME for matt

IFRAME stands for inline frame. There seems to be some feeling that using the OBJECT tag as the preffered (and more widely supported) method.

Here is a piece taken from www.w3.org -

Sometimes, rather than linking to a document, an author may want to embed it directly into a primary HTML document. Authors may use either the IFRAME element or the OBJECT element for this purpose, but the elements differ in some ways. Not only do the two elements have different content models, the IFRAME element may be a target frame (see the section on specifying target frame information for details) and may be "selected" by a user agent as the focus for printing, viewing HTML source, etc. User agents may render selected frames elements in ways that distinguish them from unselected frames (e.g., by drawing a border around the selected frame).
An embedded document is entirely independent of the document in which it is embedded. For instance, relative URIs within the embedded document resolve according to the base URI of the embedded document, not that of the main document. An embedded document is only rendered within another document (e.g., in a subwindow); it remains otherwise independent.

See these links:

http://www.w3.org/TR/html4/struct/objects.html#embedded-documents
http://htmlhelp.com/reference/html40/special/iframe.html
http://en.wikipedia.org/wiki/IFrame
http://ajaxpatterns.org/IFrame_Call

No comments:


Staying Informed