Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disabling radio buttons in netscape 4.77 and lower

Status
Not open for further replies.

glendsj

IS-IT--Management
Jul 26, 2001
26
US
I have tried various ways to disable radio buttons in netscape (<= 4.77 ). It works fine for IE and Netscape 6.1, I just insert the disabled attribute in a variable before sending the .asp page. Netscape does not recognize disabled and you can still toggle the radio button.
I even tried OnFocus=&quot;blur();&quot; that's how I got the text boxes to be read only in netscape(<= 4.77 ).
It does not work for radio buttons.
Any ideas?
 
Maybe you can let them play with the buttons all the want. But ignore the value if the browser is less that what you want. Will that work for you?

If browser is less than 4.77 then radio button value = null.

Just thinking out loud. Mike Barone
FREE CGI/Perl Scripts & JavaScript Generators
Ace PopUp Generator Software - Totally FREE
 
I already block saving any values that change.
The purpose is that users need to be able to print the form once their data has been submitted. I was looking for a way to prevent them from changing a selection so it would print. I don't want to recode a second version that only displays a value for their selections.
 
hi glendsj
u shuld hide those radios, but notice that in every layer u shuld have <form></form> tags regards, vic
 
Hi glendsj,
you tried to use event onFocus right, BUT in this case blur() won't help. Common way in this case to give focus to any other form and say to user that he/she cann't edit yhis field.

Here is an example:

<input type=&quot;radio&quot; name=&quot;radiobutton&quot; value=&quot;radiobutton&quot;
onFocus=&quot;alert('You cannot edit this field'); document.forms[0].elements[0].focus()&quot;>

In this example first object of first form on your page gets focus. Change it and give focus to any disareable element.

Good luck!
 
thanks!!
that solves it somewhat. I just get the message to pop up twice. I am sorting through to see why that happens.

Thanks again sveta!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top