Hi,
Thanks this is working good.



________________________________
From: Alex Harui <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Wednesday, March 4, 2009 11:17:10 AM
Subject: RE: [flexcoders] Restricting characters in User input controls


Try:
<mx:Script>
<![CDATA[
                Private function setRestrict( ):void
{
                txtInput.restrict  ="^’\"";
}
]]>
</mx:Script>
 
<mx:TextArea id="txtInput" initialize=”setRestrict( )”>


Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of kotha poornima
Sent: Tuesday, March 03, 2009 8:59 PM
To: flexcoders
Subject: Fw: [flexcoders] Restricting characters in User input controls
 
 
Hi All,
Can anyone give me an idea how i can solve this.

Thanks in Advance,
Poornima
----- Forwarded Message ----
From: kotha poornima <poorni_agile@ yahoo.com>
To: flexcoders <flexcod...@yahoogro ups.com>
Sent: Tuesday, March 3, 2009 5:20:18 PM
Subject: [flexcoders] Restricting characters in User input controls
Hi,
I want to exclude single quotes and double quotes in the user input
So i coded the statement like this: 
<mx:TextArea id="txtInput" restrict="^’\"" />

But iam getting error like this:(Iam not able to exclude double quotes)
Element type "mx:TextArea" must be followed by either attribute specifications, 
">" or "/>"

Can anyone help me out of this.

Thanks in Advance,
Poornima
 
 
   


      

Reply via email to