PHP Classes

Classes of Andrew Sullivan

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of Andrew Sullivan (1)  >  Mission progress status  >  Reputation  
Picture of Andrew Sullivan
Name: Andrew Sullivan <contact>
Classes: 1
Country: United States United States
Age: 42
All time rank: 14818 in United States United States
Week rank: 197 Down20 in United States United States Down
All time users: 13238
Week users: 0
Innovation award
Innovation award
Nominee: 1x
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Ajax Table Edit  
PHP Programming Innovation award nominee
May 2006
Number 3


Prize: One subscription to the PDF edition of the magazine by PHP Architect
Edit data in an HTML table using AJAX
This class can be used to edit data in the cells of an HTML table using AJAX to save the changed cell values without reloading the current page.

It takes an bi-dimensional array as parameter to define the contents of the cells of the table to be edited. Then it generates the table HTML with the necessary JavaScript code to edit the cell contents.

The user may edit the cells by clicking on them. The cell is turned into a text input so the user can alter the cell contents with the keyboard. If you are using AdvATE then you can specify the type of input you want returned: text, textarea, select, radio, and checkboxes. For the latter three, you are able to specify the inputs and values to be presented to the user.

When the cell editing is finished, the data is saved using AJAX to send to the server the new cell value and the respective table row and column number.
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 86% 80% - 75% - - 58% 1372
Month: Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z