Hi,
Initially thanks for responding but " is not working.
This is how i solved the issue.
private function setRestrict():void{
            txtInput.restrict = "^'\"<>";
        }
<mx:TextInput id="txtInput" initialize="setRestrict()"/>

Thanks
Poornima



________________________________
From: Tracy Spratt <[email protected]>
To: [email protected]
Sent: Wednesday, March 4, 2009 11:40:33 AM
Subject: RE: [flexcoders] Restricting characters in User input controls


The problem is the quote is causing the
msml compile problems.
 
Try using an entity string like &quot;
 
Tracy
 

________________________________
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of kotha poornima
Sent: Tuesday, March 03, 2009
11: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