PHP Classes

Smart AJAX Controller: Generate AJAX request responses in JSON format

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 860 All time: 4,060 This week: 135Up
Version License PHP version Categories
smart-ajax-control 1.0GNU Lesser Genera...5.2PHP 5, AJAX


This class can be used to generate AJAX request responses in JSON format.

It can define one or more keys and values that will define the actions that will be perform by JavaScript code on the browser side as response to an AJAX request.

The class converts the response values into an array that is outputted in JSON encoded format. The response may be compressed with GZip.

Picture of Kristo Vaher
Name: Kristo Vaher <contact>
Classes: 4 packages by
Country: Estonia Estonia
Age: 39
All time rank: 14377 in Estonia Estonia
Week rank: 346 Up2 in Estonia Estonia Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file ajax.php Example AJAX backend file that jQuery submits data to and waits for a response from
Accessible without login Plain text file class.smartajaxcontroller.php Class PHP class used to generate compressed JSON output for jQuery
Accessible without login HTML file index.htm Data HTML file for the working example
Accessible without login Plain text file javascript.js Data JavaScript Front-End controller, utilizing custom uiAction() function.
Accessible without login Plain text file jquery.js Data jQuery 1.4.2 is used in this example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,060
This week:135Up
User Ratings User Comments (1)
 All time
Excellent framework.
12 years ago (Dermot Copps)