iframes on layers

malte on 2003-05-21T14:07:14

I'm working on a web-based front end to an ERP-system at the moment. Suddenly the idea struck me that one could make "real" tab-control like interfaces by putting iframes inside css-layers. You can change tabs by hiding or showing the individual layers.

The cool thing about this is, that you can switch between independent HTML pages without loosing the client-state of the preceeding page. You can aboviously do this using multiple windows or frames, but it feels much better with a single window.


Bought the t-shirt

Juerd on 2003-05-21T17:34:31

I've done this, and it's very useful indeed. As a nice extra, you get to communicate with the containing page through JavaScript, which makes creating Windows-ish "Properties..." dialogs with OK/Apply/Cancel that when Cancel is clicked, cancel changes in *all* tabs very easy.

Re:Bought the t-shirt

hacker on 2003-05-22T00:21:38

Try here: http://www.brainjar.com/css/tabs/demo.html

auto refresh bug in iframes?

jflowers on 2003-05-23T11:49:29

I use this techniche to, and I think I found a bug in IE. One of the places I do this the content expires frequently so I have the page refresh itself on a regular bases. Sometimes, about 1 in 50, the iframe will replace the _top frame. It does not do this in Mozilla, so I asume its a bug in IE.