Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8242155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:04:21+00:00 2026-06-07T21:04:21+00:00

I am trying to add in jsTree to my webapp. When I trigger the

  • 0

I am trying to add in jsTree to my webapp. When I trigger the click event that creates the jsTree, nothing appears. If I examine the HTML in Chromium developer tools, all that it has rendered is an empty unordered list tag. Does anyone know what I’m doing wrong?

Html before:

<div id="studenttree">
</div>

Jquery/Jstree code:

$('#studenttree').jstree({
    'plugins' : ['json_data'],
    'json_data' : {
        'ajax' : {
            'url' : 'fakejax/getdirs.txt',
            'data' : function(n) {
                return {'id' : 'test'};
            }
        }
    }
});

Html after event trigger:

<div id="studenttree" class="jstree jstree-0 jstree-focused">
  <ul></ul>
</div>

fakejax/getdirs.txt:

[
  {
    "data" : "test",
    "children" : ["Child 1", "Child 2"]
  }
]

In the Chromium developer tools, no ajax request to getdirs.txt appears, so I’m assuming that the request isn’t even being made. The block of code is being executed however, as surrounding console.log() statements are appearing in the output box. I feel like I’m missing something simple.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:04:22+00:00Added an answer on June 7, 2026 at 9:04 pm

    After testing my code, using the jquery.jstree.js file included from another source, I discovered the code worked. Upon further investigation, it was clear my local jquery.jstree.js file had been corrupted during download and was failing to properly render.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using JsTree stable version from Github and I'm trying the add the logic
Trying to add a 'class' html attribute, but I think the keyword 'class' is
Im trying to add an constructor to my webservice, that looks like this: public
Am trying to add different numbers from different textbox, in a way that once
I am trying add two columns in a text file that are seperated by
Im trying to add a button in my grid view that will redirect me
I'm trying add a directory of jar files (or barring that, each jar file
Trying to add some html to a TextArea in Mobile Flex 4.5 but keep
I'm trying add a tab to my web page that looks like this: Using
I'm trying add some implicit rules in CMake that will generate direct dependencies (like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.