I am not sure I understand your query, a good way to define velocity variable is to read request parameters #set($myVar = $request.myVar) (will set myVar to blip if the request had a parameter http://xxxx?myVar=blip)
In order for a javascript variable to be transmitted to the server, you need to post such a request (e.g. with XHR, or by formulating the appropriate link). Defining a javascript variable from a velocity variable is as simple generating the javascript code: var myVar = "$escaetool.javascript($veloVar)" hope it helps. paul Le 11 nov. 2012 à 18:37, firmusoft.xwiki a écrit : > How can we set javascript variable to a velocity variable? Please reply > with a solution for this. If you have sample it would be more helpful. > > Thanks, > Firmusoft > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

