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 (Peter Brunone)
  • Subject: [Javascript] Netscape 4x and text form fields
  • Date: Fri, 28 Dec 2001 23:04:41 -0600

Nancy,

	Netscape 4, as I'm sure you're aware, isn't very amenable to DHTML
scripting.  AFAIK, the only thing you'll be able to do is rig an onFocus()
event handler that trips a function; if the radio button is checked, then
the text box is blurred (effectively achieved by window.focus(); ).

Cheers,

Peter

|-----Original Message-----
|From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On
|Behalf Of Nancy Burton-Vulovic
|Sent: Friday, December 28, 2001 5:28 PM
|To: javascript@xxxxxxxxxx
|Subject: [Javascript] Netscape 4x and text form fields
|
|
|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. I wrote a script that works fine in IE5x and NS6.2, using
|document.form.field.style.bgColor and document.form.field.disabled, but it
|doesn't do anything at all in NS4x. Any hints?
|
|TIA
|Nancy