Alexandre,

You should be able to simply test the folder name string against a regular
expression.

More info:
http://www.regular-expressions.info/javascript.html
http://www.websina.com/bugzero/kb/regexp.html


HTH,

________
SEAN O
http://www.sean-o.com



Alexandre Plennevaux wrote:
> 
> hello!
>  
> i am creating a form where user enters the name of a new project. First
> field is "title", the second one is "project folder name". 
> I would like to proposed a failsafe folder name from the project title.
> Can somebody provide me with a good idea on how to generate a secure
> folder name out of any string input, thus removing all non alphanumeric
> characters ?
>  
>  
> Thank you!!
>  
> Alexandre
> 
> -- 
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.447 / Base de données virus: 268.18.7/712 - Date: 6/03/2007
> 15:42
>  
> 
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/generate-folder-name-tf3361720.html#a9374260
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to