MochiKit JsonRpc
JSON RPC is very similar to XML RPC, but is much more lightweight. For more information, have a look at
The attachment is a working Webware example. It contains
- JsonRpc.js - the MochiKit compatible JsonRpc? client code
- Calculator.py - the Webware JSON RPC Calculator Server
- Main.py - the html calculator
- JSONRPCServlet.py - the Webware JSON RPC Service Servlet
- minjson.py - a python json implementation (please see copyright notice within file)
In order to try this, just untar the file in your working Webware directory and add the directory to the server configuration.
If everything goes well and you visit the page, you'll (at least that's the plan) find a working web based calculator. Since the requests are done via XMLHTTPRequests, only the calculator display is updated and not the whole page.
The JsonRpc.js file contains some basic documentation.
Attachments
- JsonTest.tgz (7.6 KB) - added by stephan.diehl at gmx.net 5 years ago.
