
iframe bye-frame?
Tuesday, December 17th, 2002
I’m building a web app in which I build the page from components. A section here on the page with its own elements, layout and control code, another one over there, insulated from the first. I’m using iframes because each one is self-contained, has its own JavaScript and DOM namespace, styles etc.
An alternative might have been to house each component in a positioned DIV, but the namespace issues and the dynamic reloading of the components made iframe the perfect tool.
Unfortunately, iframes seem to be being pushed out of the picture. XHTML Strict has no support for iframe. I understand it is to be deprecated.
In order to emulate the functionality that iframes provide, I may have to write code that enforces namespace via prefix and then div-loading code.
Anyone got any better ideas?
I’m building a web app in which I build the page from components. A section here on the page with its own elements, layout and control code, another one over there, insulated from the first. I’m using iframes because each one is self-contained, has its own JavaScript and DOM namespace, styles etc.
An alternative might have been to house each component in a positioned DIV, but the namespace issues and the dynamic reloading of the components made iframe the perfect tool.
Unfortunately, iframes seem to be being pushed out of the picture. XHTML Strict has no support for iframe. I understand it is to be deprecated.
In order to emulate the functionality that iframes provide, I may have to write code that enforces namespace via prefix and then div-loading code.
Anyone got any better ideas?