AJAX: MultiAjax
Vadym Timofeyev (contact me)
This class can be used to process AJAX requests calling PHP class functions.
It checks the request parameters to detect AJAX requests perform with the MultiAjax Javascript library.
The class extracts the AJAX request handler function name and any request parameters. A function of the class with the specified name is called passing the parameters received from the AJAX request.
The value returned by the called handler function is serialized to return to the browse as response to the AJAX request.
The MultiAjax Javascript library takes care of sending the AJAX request and receiving the response, serializing any parameters and unserializing the response values. These response values are passed to a specified Javascript callback function.
This Javascript AJAX library supports handling AJAX request and response timeouts, send parallel request up to to a limit, queue requests above the limit, send multiple requests in one batch, and supports different character set encodings including UTF-8.
Click here for detailed information about this class on phpclasses.org