Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q1222

Feedback on: irt.org FAQ Knowledge Base Q1222

Sent by Lisa on September 24, 1999 at 14:10:18: - feedback #482

Worth:
Very worth reading

Comments:
Can you should this script using multiple textboxes? Mine are working right.

Thanks!





Sent by Jeffrey van der Stad (with help of Jeroen van den Berg) on June 19, 2000 at 06:54:39: - feedback #1389

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>




Sent by Jeffrey van der Stad (with help of Jeroen van den Berg) on June 19, 2000 at 06:57:21: - feedback #1390

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]


Sent by charly dolman on January 27, 2001 at 11:28:26: - feedback #2291

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


Sent by alessandro ciurlo on June 29, 2001 at 02:35:56: - feedback #2921

Comments:
it doesn't work on netscape 4.6


Sent by Ron Howerton on Tuesday March 04, 2008 at 10:37:14 - feedback #5224

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?




©2018 Martin Webb