WebKit Examples

JSON-RPC Example

This example shows how you can call methods of a JSON-RPC servlet built with Webware for Python from your web browser via JavaScript (which has to be activated to run this demo).

The example uses a JSON-RPC JavaScript client based on Jan-Klaas' "JavaScript o lait" library (jsolait). You can also use other JavaScript libraries and toolkits such as dojo or pyjamas for that purpose.

In order to run the JSON-RPC servlet, simplejson must be installed on your server. Unfortunately, simplejson is not installed.