Prevent newline in s:TextArea


hi,

 

i trying create multi-line textinput using [spark] textarea , disallowing line breaks. (perhaps there better way?)

anyway, disallow newlines trying use:

 

restrict="^\r"

 

but doesn't seem work. neither \n \u000d \u000c etc. whatever put in there in relation newlines doesn't excluded , appears in textarea. other characters such "a" work fine.

 

does have ideas how either work, or how prevent newline characters other way, eg. incercepting events.

 

thanks,

chris

you missusing restrict property. if read document restrict property used enter things included in it

 

eg

 

mytextarea.restrict = "a-z";  // user can enter uppercase characters...

so correct ....
for solution working on ur problem...

if post answers question or helps, please kindly mark such.





More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support