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 53%Total: 862 All time: 4,061 This week: 560Up
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: 40
All time rank: 14337 in Estonia Estonia
Week rank: 233 Up1 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:862
This week:0
All time:4,061
This week:560Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:81%StarStarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2268
 
Excellent framework.
13 years ago (Dermot Copps)
70%StarStarStarStar