[thelist] Javascript Urg

Peter-Paul Koch gassinaumasis at hotmail.com
Wed Jan 8 11:11:01 CST 2003


>Can someone help me - I'm having some problems with javascript on
>Netscape/Mozilla/Opera.
>
>Here is what I'm doing.
>
>I have a simple API :
>	var x = new getObj("TitleOther");
>	x.style.display = 'none';
>
>	x = new getObj("Address");
>	x.style.display = 'none';
>
>To these
>
><input name="TitleOther" type="text" size="20" tabindex="1"
>class="forminput20">
>
><input name="Address" type="text" size="20" tabindex="2"
>class="forminput20">
>
>This works fine for IE 6 - but I can't get it to work on anything else.

Use ID instead of NAME. getElementById expects an ID (except, apparently, in
IE6).

>Can anyone fix this AND can anyone suggest some places to go where they
>explain in simpleton terms how to do javascripting.

http://www.xs4all.nl/~ppk/js/, where you also found the API, might help.

--------------------------------------------------
ppk, freelance web developer
Interaction, copywriting, JavaScript, integration
http://www.xs4all.nl/~ppk/
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
Nieuw: Jaaroverzicht 2002
http://www.naarvoren.nl/artikel/jaaroverzicht_2002.html
--------------------------------------------------


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus




More information about the thelist mailing list