Flexible Ajax Framework

Flexible Ajax is a handler to combine the remote scripting technology, also known as AJAX (Asynchronous Javascript and XML), with a php-based backend.

Basically, Flexible Ajax is the tool to call php functions from within javascript and handle the returned values, without having to reload the entire page.

The AJAX Technique is best described in the wikipedia article and the original article on adaptivepath.com, giving the technique the name AJAX.

Facts

  • written in PHP5 using object-oriented code
  • consists of a client and a server handler
  • allows separation of clientside-code and serverside-code
  • get and post methods supported
  • easy to implement into existing code

Technique

Flexible Ajax handles all the ugly parts of the AJAX technology.

It handles the connections to the server-request-handler and calls callback functions as soon as the requested data is available.

You decide in the php code, which functions the client may call.
Flexible Ajax will then generate the javascript wrapper functions for the php functions.
These can be prefixed with a string to prevent compatibility issues to other javascript.

Download

Example

An example is included in the download. 

License

Flexible Ajax is provided with the BSD-License.
Feel free to further develop and improve this product.