• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Disabling form elements in Netscape 4.7

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone know how to disable checkboxes in Netscape Navigator 4.7? Apparently, the browser does not recognise the 'disabled' attribute. I tried to put in a hack where if the user tried to click on the checkbox, a function was called and 'false' was returned thus cancelling the event, but this does not appear to be working. Any ideas would be greatly appreciated.
Thanks,
L
 
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you can do show the frst check box and if that check box is checked show the second check box. It cna done using Javascript. Disbled attribute doesnot work in ns
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might have better luck in the HTML/Javascript forum (not really a JSP question, is it?).
But I ask: why are you bothering to spend the time with work-arounds for a browser that is so out of date and now has such a miniscule market share? Ponder a bit on whether it is really worth your time.
hth,
bear
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some of us have to support older browsers!
You have to use javascript to do this. Be careful! Netscape 4.7 gets stuck in infinite loops if you use the onBlur event. I think you need to use a combination of onClick and onKeyPress.
Alternatively, you can just check whether the box is checked before you submit the page.
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to HTML and JavaScript forum...
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Easy Question, Bear you should have been able to answer it Anti-N4.X.....Yes I am the same way...But I get paid to answer it, OH WAIT I DO IT FOR FREE!
here, see if you can play with this

Eric
reply
    Bookmark Topic Watch Topic
  • New Topic