Hi,
For example, I'm using this code to unfocus a text filed if a checkbox is
checked :

onfocus="if (!document.form_nam.checkbox_name.checked) {this.blur();}"

Olivier.

[EMAIL PROTECTED] wrote:

> As others pointed out, you cannot use READONLY as it does not support
> Netscape. We have got around this problem by using javascript (please note
> actionform/actionclass demands a round-trip back to the server). We have
> used OnFocus event, basically onFocus of a readonly text field we set focus
> on some other field. That way, user will never get focus on the field.
>
> Biju Isac
>
>
>                     [EMAIL PROTECTED]
>                     om                   To:     [EMAIL PROTECTED]
>                                          cc:
>                     04/05/01             Subject:     DISABLE TEXT FIELD ON JSP
>                     08:24 PM
>                     Please
>                     respond to
>                     struts-user
>
>
>
> HI,
> Does anybody know the trick how I can disable all or some text fields on
> JSP
> to make sure use can not change anything on the form..
>
> Thanks N Regads
>
> TAHIR IQBAL

--
Olivier DUCHÊNE                    Network Research Belgium
mailto:[EMAIL PROTECTED]      Parc Industriel des Hauts-Sarts
Tel : +32 (0)4 249.72.56           2e Avenue, 65
Fax : +32 (0)4 249.78.08           B-4040 Herstal - Belgium


Reply via email to