PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2007-11-18 (11 years ago) RSS 2.0 feedStarStarStar 55%Total: 6,881 All time: 283 This week: 376Down
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.

Recommendations

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

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
  Performance   Level  
Name: Cesar D. Rodas <contact>
Classes: 39 packages by
Country: Paraguay Paraguay
Innovation award
Innovation award
Nominee: 25x

Winner: 5x

  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 12KB
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,881
This week:0
All time:283
This week:376Down
User Ratings User Comments (4)
 All time
Utility:79%StarStarStarStar
Consistency:76%StarStarStarStar
Documentation:-
Examples:79%StarStarStarStar
Tests:-
Videos:-
Overall:55%StarStarStar
Rank:1815