PHP Classes

AJAX Treeview: Update tree view on demand without page reloading

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (12)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 7,756 This week: 1All time: 227 This week: 560Down
Version License PHP version Categories
ajax-treeview 1.0GNU General Publi...5HTML, PHP 5, Databases, AJAX
Description 

Author

This package can be used to generate and update an hierarchical tree of elements from MySQL database content.

A HTML page with some Javascript performs an AJAX request to obtain the list of elements of the tree from a MySQL database query.

The tree of elements is returned to the browser in JSON format.

Picture of Neeraj Thakur
Name: Neeraj Thakur <contact>
Classes: 5 packages by
Country: India India
Age: 45
All time rank: 103 in India India
Week rank: 411 Down26 in India India Down

Details

Class : AjaxTreeview AjaxTreeview class fetches data from datatable for the requested parent category id. The data is then stored in array and converted into JSON format. This JSON format is then used by javascript code for populating tree view. JSON ( Javascript Object Notation ) is used as transitional language though XML based version is also available. JSON is used to make processing fast as compared to XML. For component AjaxTreeview JSON support must be available on server side. The component is multibrowser, cross database, cross server side language, fast, flexible and is very easy to implement. For Installaton .. 1. Run db.sql file on your local or remote database.. 2. Change the configuration settings for host, database name, username and password inside services.php file. 3. Run index.php file using php compatible web server. About myself: I am a PHP programmer working as Sr. Developer in Classic Informatics. Please rate this class If you find it useful. Please feel free to contact me for queries related to this class. I would feel gratefull if i can sort out your issues related to PHP. Thanks in advance. Neeraj Thakur Sr. Developer Emails: neeraj_th@yahoo.com neerajth@gmail.com

Screenshots  
  • screen_shot.jpg
  Files folder image Files  
File Role Description
Plain text file ajax.js Data Passing AJAX request to server
Plain text file css.css Data Cascading style sheet
Plain text file db.sql Data Databasse table script
Plain text file index.php Data Demo script
Plain text file readme.txt Doc. It consist usage manual.
Image file screenshot.JPG Screen Screen Shot
Plain text file services.php Class Server side class
Plain text file tree.js Data Populating treeview

 Version Control Unique User Downloads Download Rankings  
 0%
Total:7,756
This week:1
All time:227
This week:560Down
User Ratings User Comments (6)
 All time
Utility:86%StarStarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:67%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1525
 
the package is good but it is old and yet out of date.
6 years ago (zinsou A.A.E.Moïse)
47%StarStarStar
This is very good script to show tree-view structure.
16 years ago (Bhupender Singh)
70%StarStarStarStar
There are samples! But they donīt work.
16 years ago (Alex Waller)
35%StarStar
Eazy to implement, great ;)
15 years ago (honda2)
57%StarStarStar
Good job
16 years ago (Gustavo Arcila)
70%StarStarStarStar
Easy + simple = perfect_starter
16 years ago (Rolf Andersson)
70%StarStarStarStar