PHP Classes

AJAX Treeview: Update tree view on demand without page reloading

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 7,761 All time: 227 This week: 68Up
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: 49 Down7 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 (1)  
  • screen_shot.jpg
  Files folder image Files (9)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:7,761
This week:0
All time:227
This week:68Up
User Ratings User Comments (6)
 All time
Utility:86%StarStarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:67%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1541
 
the package is good but it is old and yet out of date.
7 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 ;)
16 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