Abstract
AJASON is a PHP 5 library and JavaScript client for the upcoming Web technology called AJAX.
AJAX permits data to be fetched asynchronously without the need for
reloading the Web page and thus allows the development of interactive
GUI-like Web applications. JSON is a lightweight data interchange format which is used by AJASON to exchange data between server and client.
The key features of AJASON are:
- Fully object oriented code in PHP 5 and JavaScript
- Call PHP functions and object methods from JavaScript asynchronously
- Exchange even complex data types like arrays and objects (precisely object properties) between server and client
- Use JavaScript callback functions to process server responses
- Client side error reporting for server side AJASON errors
- Open source released under the GNU GPL
Requirements
- Web server with PHP 5 module
- JavaScript enabled browser, preferably a current Mozilla based browser
Testing
AJASON 0.9 has been successfully tested with Mozilla Firefox 1.0.6 and Microsoft Internet Explorer 6.0.
Due to a browser bug AJASON does not work with Opera 8.01 (and probably previous versions) when sending data with POST method.
Due to a browser bug AJASON does not work with Opera 8.01 (and probably previous versions) when sending data with POST method.
Todo
- Tests on more browsers
- Maybe: optional XML response for direct manipulation of DOM objects?
- Maybe: registering complete classes with all public (static) methods?