Potential workaround to keep those 3 ns4 users happy (actually i think
there's more like 7):

- Clicking the button sets a Javascript variable "disableTextBoxes" to true
- The textboxes have an onchange function that:
    - if disableTextBoxes is false, it stores the textbox value in an array
    - if disableTextBoxes is true, it changes the textbox value back to the
previous value saved in the array

So when disableTextBoxes is true, the user could edit the field value, but
as soon as the focus leaves that field it will change back to its orig
value--it's in effect uneditable.

A nice extra touch would be to have an onfocus handler in the textboxes that
calls a function tellUserIfDisabled().  tellUserIfDisabled() checks
disableTextBoxes, and if it is true, shows them an alert saying that they
shouldn't change the value in that textbox.

It's a total hack but having had to work with NS 4.7 before I got used to
doing such things...  ugh.

HTH,
Scott.

-----Original Message-----
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 12:06 PM
To: Struts Users Mailing List
Subject: Re: Netscape 4.7 & disable fields


A couple of years back i had to get disabled form element behaviour 
working on ns4 and used dynamically gnerated and positioned divs with a 
tranparent image to cover the elements ... But i think its very silly 
and a waste of time.

It quite a lot of dhtml fiddlyness for all 3 ns4 users.. :)

Luned́, 31 mar 2003, alle 18:19 Europe/Rome, James Mitchell ha scritto:

> On Mon, 2003-03-31 at 11:12, Gus Delgado wrote:
>> Has anyone run with his/her Struts application and Nestcape 4.7. I 
>> have
>> a few textfields that once a button is click the text field go from
>> being enable to disable (read-only) it works great on IE 5.5 and
>> Netscape 6.0 but it seems that Netscape 4.7 does not understand the
>> disable=true attribute.  Any ideas?
>
> Netscape 4.x does not support disabled fields.
> If you must support that browser version, use html:hidden with the 
> write
> option:
>  http://jakarta.apache.org/struts/userGuide/struts-html.html#hidden
>
>>
>> Thanks
>> Gus
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
> -- 
> James Mitchell
> Software Developer/Struts Evangelist
> http://www.open-tools.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to