Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: SV: Re: SV: Re: SV: Re: SV: Re: Show more input fields only when checkbox is check in a form


Message #1 by "Robert Nyman" <robert.nyman@c...> on Tue, 29 Oct 2002 15:21:59 +0100
Here is the form 
http://www.cs.umanitoba.ca/~estein/health.html

works like a charm in IE but some how when you put these in a table in 
netscape it acts bizzarre. When the Javascript portion is removed from an 
item it displays in the correct manner so it  doesn't seem to be the 
html. This part does not even work in netscape 7. The most basic version 
of this scrip that was give by John leaves a space after the item is 
deselected and if it happens twice the space doubles etc... Is there some 
way to make these things work or is it impossible in netscape. Where 
would you look or what books would you buy.

Thanks for all your efforts John and Robert
-Roni


> As John wrote, it depends on what version of Netscape we're talking
about.
John's code seems to be working for Netscape 6+ as well as IE5+.

For Netscape 4, these things will not work:

document.getElementById()		//As John pointed out
Setting the style.display for anything else than a LAYER (i.e. an
absolutely or relatively positioned DIV).

To achieve the same result in Netscape 4, you have to do some more
advanced coding with LAYERs etc.


/Robert

  Return to Index