Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
Salem_ #1
restrict characters
in the action script i create
//allowed character
var restrict_:String =
"a-z,A-Z,0-1,!,@,$,%,^,*,(,),[,],{,},;,\',\",/,\\,-,.,+,|, ,,";
and in design
<mx:TextArea id="MyTextArea" width="160" restrict="{restrict_}"/>
but still it is not working fine ...
infact my point is to allow all the character except (#) and (&) , since they
couse problems if passed throw URL ...
any idea pleas
Salem_ Guest
-
SECOND restrict access
I have built several databases in MySQL, in one is a table that has all the log-on information that keeps the administration side of the site... -
TextField.restrict
How to make the entry to accept only "+" sign. -
how to read japanese characters (multilingual characters) from a text file and save them in Access database ???
HI All i m trying to read a text file, having some japanese characters and saved as UTF-8 encoding. I m using ASP,FSO ... my code is below,... -
Restrict teen
How do you restrict a teen from adult sites? -
Numeric characters after alphabetic characters sorting varchar2 fields
Hi! Why numeric characters are placed after alphabetic characters sorting varchar2 fields? Example: AAA BBB 111 FFF XXX -
peterent #2
Re: restrict characters
Use restrict_:String = "^#&";
The ^ at the start of the string means to allow all characters except those that follow. In this case, # and &.
peterent Guest
-
ntsiii #3
Re: restrict characters
Ah, cool, I did not know that!
I was going to suggest you escape() your url string instead of restricting the
characters. excape() converts all non-alpha-numeric characters into URL-safe
encoding.
Tracy
ntsiii Guest
-
Salem_ #4
Re: restrict characters
thanks peterent .. your idea is much easier that i thought
..
but for our information can you give us more details about your idea ntsiii
(escape() )??
thansk you peterent , ... and thanks in advance ntsiii
Salem_ Guest
-
ntsiii #5
Re: restrict characters
escape() is a built-in Actionscript (and Javascript) function.
See the documentation for details.
Tracy
ntsiii Guest



Reply With Quote

