Title: RE: Is there anyway to disable the getForcus and inout for textbox entry?

Use javascript to accomplish this. For example,

<input type=text name=box value="Locked text!" onFocus="this.blur()">

removes focus from the text box as soon as the user tries to put the cursor there.

/Peter

-----Original Message-----
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 9:48 AM
To: [EMAIL PROTECTED]
Subject: Re: Is there anyway to disable the getForcus and inout for textbox entry?


Dick,
You can use the 'DISABLED' modifier for the input tag.

ex.
<INPUT type="TEXT" name="someName" value="someValue" DISABLED>

It works on IE 5.5 and Netscape 6.0.  I don't think it works on earlier
versions of Netscape.  As for the other browsers, I don't know.

Regards,

Richard

At 05:43 PM 9/21/01 +0800, you wrote:
>Dear all,
>
>I create a entry form for Customer Master and I would also like to display
>the data on same form when user click the search button. Is there any way
>to disable the getfocus and input when user search record. Or should I
>seperate it into two form, one for data entry and the other is for display
>the result when searching.
>
>Dick
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to