Solved

JsTree loading data

Posted on 2014-04-02
1
8,310 Views
Last Modified: 2014-04-13
I've been reading up on using jsTree and trying to figure out how to load data into the tree. My data I want to load is massive so I will need to use ajax, so when a node is clicked on I want it to go off and pull in the child nodes.

Ive seen some examples of binding to the click event then going off to pull the child nodes back however Im unable to find any examples how to bind on click of the node, change the icon to a 'waiting gif' and then pull down an ajax json request and draw child nodes showing which ones can expand and bind expandable nodes to draw more.

Anyone got any examples or any documentation on binding to a node and drawing child nodes from the json returned request?

Thank you for any assistance anyone can provide
0
Comment
Question by:tonelm54
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
Mrunal earned 500 total points
ID: 39977914
Hi
have you gone through this link:
http://www.jstree.com/demo/
?

it has all examples having ajax call, load json data, etc.

Also check this example:
http://johntang.github.io/JsTree/demo.html

http://www.miketyka.com/2012/10/lazy-loading-with-jstree-and-ajax/
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Autocomplete with Jquery Question 2 35
Prevent a display:none image from downloading on page load 5 68
Worldmap 1 28
javascript and jquery question 4 26
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question