AJAX Treeview: Update tree view on demand without page reloading

Recommend this page to a friend!
  Info   Screenshots   View files (8)   Download .zip   Reputation   Support forum (12)   Blog    
Ratings Unique User Downloads Download Rankings
59%Total: 7,725 This week: 2All time: 225 This week: 110
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: 41
All time rank: 103 in India India
Week rank: 40 8 in India India

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

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

 Version Control Unique User Downloads Download Rankings  
This week:2
All time:225
This week:110
User Ratings User Comments (6)
 All time
the package is good but it is old and yet out of date.
2 years ago (zinsou A.A.E.Moïse)
This is very good script to show tree-view structure.
12 years ago (Bhupender Singh)
There are samples! But they donīt work.
12 years ago (Alex Waller)
Eazy to implement, great ;)
12 years ago (honda2)
Good job
12 years ago (Gustavo Arcila)
Easy + simple = perfect_starter
12 years ago (Rolf Andersson)

For more information send a message to info at phpclasses dot org.