Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Netscape 4x and text form fields


  • From: javascript@xxxxxxxxxx (Nancy Burton-Vulovic)
  • Subject: [Javascript] Netscape 4x and text form fields
  • Date: Sat, 29 Dec 2001 01:24:12 -0500

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@xxxxxxxxxxxxx>
To: <javascript@xxxxxxxxxx>
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@xxxxxxxxxx
: https://lists.LaTech.edu/mailman/listinfo/javascript