Feedback on: irt.org FAQ Knowledge Base Q1222
Worth:
Very worth reading
Comments:
Can you should this script using multiple textboxes? Mine are working right.
Thanks!
Worth:
Worth reading
Length:
Too short
Technical:
Just right
Comments:
it was worth reading, but we came up with a better solution.
This solution can handle more textfields and is better to understand than the code in faq Q1222..
with best regards
Jeffrey
updated code:
<form name="myForm">
<input type="text" name="myTextField1" value="" onFocus="yy(disabled)">
<input type="text" name="myTextField2" value="" onFocus="yy(disabled)">
<input type="text" name="myTextField3" value="" onFocus="yy(disabled)">
<input type="text" name="myTextField4" value="" onFocus="yy(disabled)">
<input type="checkbox" name="chk" onClick="xx()">
Disable
</form>
<script language="JavaScript"></script>
Worth:
Worth reading
Length:
Too short
Technical:
Just right
Comments:
FAQ Q1222 was a nice sollution, but it was very hard to understand what the actual meaning was, plus it was not capable of more than one textfield...
if you are interested in the (updated) code, please contact me at my email adress..
best regards
[tmd]
Worth:
Worth reading
Comments:
this does not work to make netscape form flield readonly.
this does:
<input type="text" name="field" ONFOCUS="this.blur()">
include readonly=readonly for IE
Comments:
it doesn't work on netscape 4.6
Worth:
Worth reading
Length:
Technical:
Not technical enough
Comments:
This renders text boxes DISABLED, but not READONLY. DISABLED text boxes cannot be read by assistive technology applications, meaning users with vision problems using screeen reader programs will not be able to retrieve the value in a DISABLED text box. READONLY text boxes do not have this issue, but strangely ALL DISABLED fields do (not just text boxes). So a DISABLED drop down list is also inaccessible. We are therefore required to provide READONLY text boxes in lieu of any DISABLED fields on our screens.
So how can I make a textbox READONLY is JScript, not DISABLED?