Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Cfinput tags: what's the difference between disabled and readonly


Message #1 by anne.do@c... on Tue, 7 Jan 2003 19:25:55
This is a much better solution, please ignor my previous comment.

Rod

-----Original Message-----
From: Imar Spaanjaars [mailto:Imar@S...]
Sent: Wednesday, 8 January 2003 5:12 AM
To: HTML Code Clinic
Subject: [html_code_clinic] Re: Cfinput tags: what's the difference be 
tween disabled and readonly

Hi Anne,

You could use CSS styles to change the color of the background and text 
of
the textboxes. Something like:

<style>
         .disabledTextBox
         {
                 background-color: #D3D3D3;
                 color: #000000;

         }.Test
</style>

<input type=3D"text" class=3D"disabledTextBox" value=3D"readonly"
readonly=3D"readonly" />

But I also think the user will pretty soon find out they can't change a
thing. Not only their changes aren't saved, they are not able at all to
make any change.

Cheers,


Imar




At 03:57 PM 1/7/2003 -0500, you wrote:
>Oh I see.  Is there a way to gray out the READONLY attribute so the 
user
>won't think that he/she is really changing anything?  I'm using this 
for an
>edit form in which I want the user to see what I my input values  but 
not be
>able to change the values.  If it can't be grayed out how can I make it
>known that the form field is readonly and any changes they make will 
not be
>saved?
>
>Anne
>




  Return to Index