[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

JsTree loading data

Posted on 2014-04-02
1
Medium Priority
?
9,117 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
Suggested Courses

656 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