Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textfield 1

Status
Not open for further replies.

Illreap33

Vendor
Sep 22, 2003
9
CA
Hi Folks,

How do I disable a textfield?

There are times when I want the user to be able to enter information and times that I don't.

Thanks.
 
probably simplest just to play with the type of textfield

make it input when you want the user to type and dynamic or static when you dont

something like this ought to do it

off_btn.onRelease = function(){
mytext.type = "dynamic"
}
on_btn.onRelease = function(){
mytext.type = "input"
}

 
Thanks Bill,

I tried that and it works. The thing is I don't want to do this with on screen buttons but with one of a series of radio buttons.

Text is being displayed and if the user wants to add to it he checks the correct radio button and types.

The other radio buttons all lead to different text files ( drawn in from an asp page) being displayed in the textbox. This part works well and saving user additions works.

What I am after is a page that in certain circumstances is read only.


 
if its read only then i assume some sort of password protection is in place

i think id put the radio controlling the ability to add text in another radio group from the ones controlling text and give it its own changehandler

if its checked let them type otherwise not. if they have the password that radio is enabled otherwise not.

if i have wandered away from what you need then stick up the fla so i can get a better idea of whats going on
 
No Bill,

You had it just right. Removing this radio button from the group it was in was the hint I needed.

Many Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top