PHP Classes

Auto Ajax: Update page parts with AJAX when links are clicked

Recommend this page to a friend!
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum (12)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 6,923 All time: 286 This week: 560Down
Version License PHP version Categories
autoajax 1.0BSD License4.0AJAX
Description 

Author

This class can be used to update only parts of pages when links are clicked using AJAX to avoid full page reloading.

It uses some Javascript code to intercept the clicks on the current page links.

The link clicks trigger AJAX POST requests to fetch the content to update specific page sections, instead of the whole page.

If the browser does not support Javascript or AJAX requests, the clicks on the links will make the browser retrieve the whole page as usual.

Innovation Award
PHP Programming Innovation award winner
November 2007
Winner


Prize: One book of choice by O'Reilly
AJAX became very popular because it allows to partially update Web pages in much less time than if they would have to fully reload.

Implementing AJAX in a formerly non-AJAX class, usually requires many changes in the code that generates the page.

This class makes it possible to use AJAX to update parts of a page without changing too much the code of the scripts that generate the page.

Manuel Lemos
Picture of Cesar D. Rodas
  Performance   Level  
Name: Cesar D. Rodas is available for providing paid consulting. Contact Cesar D. Rodas .
Classes: 38 packages by
Country: Paraguay Paraguay
Age: 36
All time rank: 71 in Paraguay Paraguay
Week rank: 93 Down1 in Paraguay Paraguay Equal
Innovation award
Innovation award
Nominee: 25x

Winner: 5x

Recommendations

What is the best PHP page caching class?
Need best caching to store XML documents

  Files folder image Files  
File Role Description
Files folder imageexample-aa-ur (3 files)
Files folder imageexample (7 files)
Plain text file autoajax.php Class Main class
Accessible without login Plain text file url_handler.php Example Example with Url Rewriter
Accessible without login Plain text file autoajax.js Data javascript to implement autoajax
Accessible without login Plain text file prototype.js Data Prototype

  Files folder image Files  /  example-aa-ur  
File Role Description
  Accessible without login Plain text file error.php Example Example with Url Rewriter
  Accessible without login Plain text file index.php Example Example with Url Rewriter
  Accessible without login Plain text file page.php Example Example with Url Rewriter

  Files folder image Files  /  example  
File Role Description
  Accessible without login Plain text file about.php Example Example
  Accessible without login Plain text file copyleft.php Example Example
  Accessible without login Plain text file definition.php Example Example
  Accessible without login Plain text file index.php Example Example
  Accessible without login Plain text file normal-request.php Example Example
  Accessible without login Plain text file time.php Example Example
  Accessible without login Plain text file welcome.php Example Example

Downloadautoajax-2007-11-18.zip 17KB
Downloadautoajax-2007-11-18.tar.gz
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
JSON Download .zip .tar.gz Only need if there is not PHP json_encode function Conditional
Url Rewriter Download .zip .tar.gz For example with URL Rewriter Conditional
 Version Control Unique User Downloads Download Rankings  
 0%
Total:6,923
This week:0
All time:286
This week:560Down
User Ratings User Comments (4)
 All time
Utility:77%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:77%StarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:2066