Helma AJAX Requests
This is a private rough draft document started by philmaker on November 19, 2007. The intent is to document how to handle get/post AJAX requests for JSON and XML. Plan on initially creating an example which uses the internal database to store data using user HopObjects. ATM, I can't get toJSON() to work so I need to sort that out. Writing XML requires Jala so I need to document that. I plan on creating some simple examples and then doing a writeup on those examples.
In order to return rendered JSON in a response, you must include the module in apps.properties:
appname.repository.1 = modules/core/Object.js
appname.repository.2 = modules/core/JSON.js
In order to return rendered XML in a response, you must include the module:
VERIFY: appname.repository.1 = modules/jala/XMLWriter.js