From: Leif W <war...@us...> - 2004-11-30 19:34:06
|
I've just tried in Firefox 1.0 and IE6. The example you gave was slightly broken and didn'twork in Firefox 1.0 or IE6 (need the *.setPath and *.include calls). I fixed that and it worked fine in Firefox 1.0 but it only half works in IE6. The text disappears in IE6, but the space that the layer occupies does not allow the restof the content to completely shrink, but rather leaves something as a place holder. If you comment out the setHTML line, it looks the same in Firefox as in IE6. I don't know why IE6 does this or how to work around. I wonder if this is related to the inline getVisible bug. Leif <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <script language="JavaScript" src="../../dynapi3x/src/dynapi.js" type="text/javascript"></script> <script language="JavaScript" type="text/javascript"> <!-- dynapi.library.setPath( '../../dynapi3x/src/' ); dynapi.library.include( 'dynapi.api' ); dynapi.library.include( 'dynapi.api.ext' ); //--> </script> </head> <body> first line<br> <div style="background-color: #009900" id="progress"> second line<br> </div> third line<br> <br> <b>the above should look like this (the layer should be completely invisible):</b><br> <br> first line<br> third line<br> <br> <b>It seems fine in Firefox 1.0.</b><br> <br> <b>However it only half works in IE6. The text isinvisible but there's still a <br>.</b><br> <br> first line<br> <br> third line<br> <script language="JavaScript" type="text/javascript"> <!-- var progress = DynLayer.getInline("progress"); progress.setVisible(0); //progress.setVisible(false); progress.setHTML(""); //progress.setHTML(null); //--> </script> </body> </html> ----- Original Message ----- From: "Ronald" <mu0...@bu...> To: <dyn...@li...> Sent: Tuesday, November 30, 2004 07:17 Subject: [Dynapi-Help] Making a inline layer dissapear completely (collapse) in IE > > The following code works in Firefox, but not in IE. In Firefox the layer dissapears completely, in > IE there is a blank area left. Am I doing something wrong? > > > <html> > <head> > <script language="JavaScript" src="dyn.js"></script> > </head> > > first line<br> > <div id="progress"> > second line<br> > </div> > third line<br> > > <br> > <b>the above should look like this (the layer should be completely invisible):</b><br><br> > > first line<br> > third line<br> > > <script language="Javascript"> > <!-- > var progress = DynLayer.getInline("progress"); > progress.setVisible(false); > progress.setHTML(""); > //--> > </script> > </html> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > |