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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML READONLY Attribute

Status
Not open for further replies.

tviman

Programmer
Jul 25, 2002
2,123
US
My script generates an HTML page with an order form. All of the applicable fields (qty, sub-total, tax, etc.) are input tags and a javascript does all the calculations. I don't want the user to be able to change any of the values so I tried the READONLY attribute but it doesn't work with a Perl generated script. In the past, I've used onFocus="this.blur()" to get around the problem but now I need to be able apply other js functions to some of these fields and onFocus="this.blur()" is interferring with those other scripts.

Has anybody run into this problem before - and how did you solve it? Or, anybody have any other ideas?

Thanks for looking and thanks to all who've helped me in the past. There's always a better way...
 
Okay - a little hint... the READONLY attribute works in Netscape 6 & 7 but not in 4.0 and lower. Sorry about the misunderstanding. There's always a better way...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top