2011-12-23 14:00, Javix: > Could you indicate where exactly I have to escape single quotes, please, > here: > > String js = String.format("loadPass('%s','%s','%s','%s','%s');", m1, m2, m3, > m4, m5); > > Thks
Here is the generated output from your last mail: loadPass('Veuillez indiquer un nouveau mot de passe','Veuillez confirmer le nouveau mot de passe','Le mot de passe confirmé et le mot de passe entré ne sont pas identiques','Veuillez indiquer une adresse mail','Adresse mail n'est pas valide'); In "n'est" you have a apostrophe (a single quote) - you have to encode that! Ohterwise the JS interpreter thinks that's the end of the string (and that leads to an error). You can use double quotes (") to quote your JS strings - then you can use the texts without encoding as long as you don't use double quotes in your strings. If you want to avoid all this hassle use a JSONObject for this. -- Chris --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org