[Javascript] Netscape 4x and text form fields

Nancy Burton-Vulovic nancybv at idirect.ca
Sat Dec 29 00:24:12 CST 2001


I'm happy to share what I had, (it's at work on an intranet so I'm going to
have to roughly recreate it from memory, but it wasn't very complex) but as
I said, it does not work on NS4x. What I did as a workaround was to have the
script write "Not Applicable" in the text boxes they aren't supposed to be
able to fill in, but it doesn't actually stop them from writing in it. I
tried item.blur() but it didn't seem to do anything at all.

Why can't that department just upgrade.....grrrrr......it's free and NS6.2
is not bad at all.

the idea was to have a primary group of  radio buttons controlling a
secondary group of buttons, (some radio, some text) so checkme can be
various things (yes, no, minutes, agendas)

// check value and either blank out radio buttons or not
function turn_me_off(checkme){
if (checkme == "no"){
for (loop=0,loop<document.form1.field1.length,loop++){
item= document.form1.field1[loop];
item.checked = false;
item.disabled = true;
if (item.style) {
item.style.bgColor = "grey";
}
}
}
etc.

>From the radio button
<......onClick="javascript:turn_me_off('no')"...>

it's after 1 am and I've just had a nice dinner and several glasses of wine
so forgive the syntax mistakes

N


----- Original Message -----
From: "Kelly, Kyle" <Kyle at admin.usf.edu>
To: <javascript at LaTech.edu>
Sent: Friday, December 28, 2001 9:05 PM
Subject: RE: [Javascript] Netscape 4x and text form fields


: Nancy,
:
: Would you mind sharing, por favor?
:
: Kyle
:
:
: >I need to be able to "gray out" text fields in Netscape 4x if a certain
: >radio button is checked. I need them to be both visually distinct and
: >unable to accept text.
: _______________________________________________
: Javascript mailing list
: Javascript at LaTech.edu
: https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list