On 06/12/2012 02:51 AM, mathieu.canzerini(a)intech.lu wrote:
Thank you for your response.
I have already used the escapetool but he doesn't seem work : this tool
adds one backslash before the quote but the script looks wrong.
(onclick="function(\"param\",callback);" doesn't work)
What's that supposed to do? It doesn't look like semantically correct
Javascript in the first place, regardless of quote escaping.
Is "function" here a placeholder for a real function name, or is it
really used like this in your code?
You shouldn't use onclick, try this instead:
http://www.prototypejs.org/api/element/observe
I've read this page :
http://www.xwiki.org/xwiki/bin/view/FAQ/HowCanIescapeOutQuotationMarksFromA…
But whithout success ...
On Mon, 11 Jun 2012 16:42:43 +0200, Paul Libbrecht <paul(a)hoplahup.net>
wrote:
> Le 11 juin 2012 à 16:31, Sergiu Dumitriu a écrit :
>> var userInput = "$!escapetool.javascript($request.userInput)";
>
> Actually... is there a list of such predefined variables?
> Or... what's the way to list them? With their class.
>
> paul
--
Sergiu Dumitriu
http://purl.org/net/sergiu/