Re: [xwiki-users] ajax example

2015-03-24 Thread Marius Dumitru Florea
Some comments: For step 1: Don't print the JSON directly. You'll have escaping issues. In order to ensure the generated JSON is valid you should build the JSON in memory (using Velocity/Java maps, arrays and basic types) and then serialize it: $jsontool.serialize({ greeting: Hello, location:

[xwiki-users] ajax example

2015-03-20 Thread Pascal BASTIEN
Hello, Here, I provided an simple Ajax example to use in xwiki application: http://extensions.xwiki.org/xwiki/bin/view/Extension/AJAX+example#Attachments This mail on this list to validate that what I wrote is the best way (like suggest Vincent) Thxs. Pascal BASTIEN