Hi Danilo,
On 26 May 2014 at 20:35:08, Danilo Amaral de Oliveira
(danilo.oliveira@energisa.com.br(mailto:danilo.oliveira@energisa.com.br)) wrote:
Hello Community,
Can I use velocity methods inside my JS code?
For example, I want to parse my JSON text to Java objects inside a JS function:
Function function (){
Var test = $jsontool.parse('["json string"]')
}
Function();
Is it possible?
Yes, see
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial
And
especially
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial#HH…
(hint: set “parse” to true).
Thanks
-Vincent
Thanks
Danilo