[xwiki-users] Javascript XObjects
Hi, i want to read, edit and save xwiki-objects from a page in javascript. I wrote a post (http://xwiki.475771.n2.nabble.com/Javascript-RESTful-tp7594084.html) where i thought i should solve this with rest. I think now is is a lack of knowledge. Where is documented what the Object 'XWiki' in javascript can do? I read some source-code from fullcalender and others and see that they use 'XWiki.widgets' or 'XWiki.model', but i have no idea where to lolookinform myself what XWiki on Javascript-side is to fill my gap of knowledge. Is there a document where i can look? Or should i use the "only" the Javascript XWiki API (http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI) to read the object data with velocity or groovy to handle them in javascript. I dont understood it? What is a preferred solution? Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/Javascript-XObjects-tp7594090.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi All, i found the Javascript-Code https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik... from the Suggest-Widget at https://network.xwiki.com/xwiki/bin/view/DocXE61En/SuggestWidget. In the code i used the Ajax-Function from Prototype with {{velocity}} {{html}} DATA<br/> <div id="data"></div> <br/> RESPONSE<br/> <div id="response"></div> {{/html}} {{velocity}} Everything works fine and i get the REST-Responses as json. But when i switch to "application/xml" i always get a result in responseText. You know why? Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/Javascript-XObjects-tp7594090p7594176.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (1)
-
Matthias Wegner