Hi Prathap,
the velocity templating, including the #set call, happens on server side
and the javscript is executed after that, on the client computer. So you
can't use #set to assign a value to a variable. The best you can do is
do something like:
<script type="text/javascript">
myJsVariable = "${myVelocityVariable}";
</script>
Prathap Pandian wrote:
Hello,
How to assign javascript values using #set method in xwiki pages(Velocity).