Jsonserver provides an alternative way of AJAX client-server communication on Zope.
Jsonserver enables Zope to act as a JSON-RPC server. JSON-RPC is an XML-RPC replacement. It is built on JSON, a javascript based data interchange format. JSON has bindings for more languages. On the client side, the "jsolait" javascript library contains both JSON and JSON-RPC support, besides other utilities. Characteristics of this approach are: - You can bind methods in javascript to Zope methods, python scripts or page templates and call them up directly from javascript in a synchronous or asynchronous way (RPC). - Both the call parameters and the return value can be strings, unicode strings, instances of any other builtin python data type, or structures built with the combination of tuples, lists and dicts. These get marshalled transparently with JSON. - As a consequence there is no necessity to use XML to pass around structured data, you can just structure your data with python and pass it directly (but of course you also have the possibility to pass around XML). - Passing of both positional and keyword parameters allows to call up page templates with request parameters. - Full client compatibility with the Zope3 version of jsonserver, i.e. the same client code will be able to run on Zope2 and Zope3 without a change. This version, 1.1.pre2 is a pre-release and considered to be beta. It works pretty well but there are things that might need to change before the final release. -- Balazs Ree, ree at ree.hu _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )