Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 14th, 2004, 4:56 AM   #1
chaiachaya
Newbie
 
Join Date: Sep 2004
Posts: 6
Rep Power: 0 chaiachaya is on a distinguished road
Hi,
the netscape navigator to disable text fields. the use of

:
if(navigator.appName == "Netscape")
document.busForm.busRoom.disabled = true;
:
:
should work. Netscape java error handler gives me busForm undefined yet its properly defined in the html, IE recognizes it. Is their another way we can get away with this?

Thanks in advance!
chaiachaya is offline   Reply With Quote
Old Sep 14th, 2004, 11:03 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
For the code to work in Netscape, you'll have to write:
document.getElementById(busForm).busRoom.disabled = true;
The getElementById thing retrieves a pointer to the field - Netscape doesn't create them automatically.

One more thing, though: why do you want to disable the textbox in Netscape? You know that's alienating potential visitors, right?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:07 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC