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: 861 All time: 4,059 This week: 117Up
Version License PHP version Categories
smart-ajax-control 1.0GNU Lesser Genera...5.2PHP 5, AJAX
Description 

Author

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: 14367 in Estonia Estonia
Week rank: 641 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  
 0%
Total:861
This week:0
All time:4,059
This week:117Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1475
 
Excellent framework.
12 years ago (Dermot Copps)
70%StarStarStarStar