Wrox Home  
Search P2P Archive for: Go

  Return to Index  

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


Message #1 by "Robert Nyman" <robert.nyman@c...> on Thu, 31 Oct 2002 10:57:16 +0100
To adapt it to Netscape 4, I'd look here:

http://developer.netscape.com/docs/manuals/communicator/dynhtml/index.ht
m

and try in this discussion group:

snews://secnews.netscape.com/netscape.devs-javascript


/Robert


-----Ursprungligt meddelande-----
Fr=E5n: Ronen Estein [mailto:estein@c...]
Skickat: den 30 oktober 2002 20:32
Till: javascript
=C4mne: [javascript] Re: SV: Re: SV: Re: SV: Re: SV: Re: Show more input
fiel ds only when checkbox is check in a form


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

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20


  Return to Index