[thelist] iframe content is lost

shortestpath shortestpath at yahoo.com
Fri Sep 5 22:45:21 CDT 2003


how is the content for the bottom frame is lost when 
you make it invisble? Add these lines to you page to 
see what happens: 

<button
onclick="document.getElementById('div1').style.display='block'">
DIV1 show
</button>

<button onclick="document.getElementById('div1').style.display='none'">
DIV1 hide
</button>

<button
onclick="document.getElementById('div2').style.display='block'">
DIV2 show
</button>

<button onclick="document.getElementById('div2').style.display='none'">
DIV2 hide
</button>

By the way, display:none doesn't make an element -invisible-. 
See the 2nd paragraph for the value none at: 
http://www.w3.org/TR/CSS2/visuren.html#propdef-display

-alex

--- "Fernando J. Gomez" <fgomez at criba.edu.ar> wrote:
Hi!

I've posted at this URL a page that clearly shows a problem (not so 
big,
after all) that I found today:

    http://inmabb.criba.edu.ar/~fg/test-display-none.htm

Two iframes, one inside a table inside a div, the other one just inside

a
div.

I want to be able to toggle the visibility (in fact, the 
".style.display"
property) of the divs, without losing the content of the iframes.

When I play with the buttons above the frames, using IE 5.5, this is 
what I
see: once the bottom iframe has been made invisible, its content seems 
to be
lost. The other iframe (the one without the table) behaves in the 
expected
way.

Obviously I could rewrite the page code, and use only divs instead of 
this
table, but anyway I can't resist asking the question: is there any
reasonable explanation for this behavior? Just another bug?

Thanks for your feedback, and please reply also to my address,
fgomez at criba.edu.ar.

Fernando



=======================================================
Fernando J. Gómez

Biblioteca Dr. Antonio Monteiro
Instituto de Matemática de Bahía Blanca (CONICET/UNS)
Av. Alem 1253
8000 Bahía Blanca - Argentina
=======================================================

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


More information about the thelist mailing list