Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (6 years ago) RSS 2.0 feedStarStarStar 53%Total: 6,727 This week: 3All time: 272 This week: 631Down
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
Name: Cesar D. Rodas is available for providing paid consulting. Contact Cesar D. Rodas .
Classes: 37 packages by
Country: Paraguay Paraguay
Age: 27
All time rank: 71 in Paraguay Paraguay
Week rank: 29 Down1 in Paraguay Paraguay Equal
Innovation award
Innovation award
Nominee: 24x

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,727All time:272
 This week:3This week:631Down
User Ratings User Comments (4)  
 All time
Utility:76%StarStarStarStar
Consistency:73%StarStarStarStar
Documentation:-
Examples:76%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:1385