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 3347046
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:22:32+00:00 2026-05-18T01:22:32+00:00

I am trying get tree view in the web page. I am using jstree

  • 0

I am trying get tree view in the web page. I am using jstree plugin for the tree view. I am actually new to jQuery. The following is the code i have written.

<%-- 
    Document   : folderView
    Created on : Nov 2, 2010, 3:31:55 PM
    Author     : Vamshidhar
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>

    <head>
        <title>hi</title>
         <script type="text/javascript" src="jquery.jstree.js"></script>
        <script type="text/javascript" src="jquery.js"></script>

    </head>
    <body>

 <div id="demo1" class="demo"></div>

<script type="text/javascript">
$(function () {
 $("#demo1").jstree({
  "xml_data" : {
   "data" : "" +
"<root>" +
 "<item id='node_1'>" +
  "<content><name>Root node 1</name></content>" +
 "</item>" +
 "<item>" +
  "<content><name>Root node 2</name></content>" +
 "</item>" +
 "<item parent_id='node_1'>" +
  "<content><name>Child node</name></content>" +
 "</item>" +
"</root>"
  },
  "plugins" : [ "themes", "xml_data" ]
 });
});
</script>

    </body>
</html>

Can anyone help me figure out what is wrong?

Thanks in advance

  • 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-05-18T01:22:32+00:00Added an answer on May 18, 2026 at 1:22 am

    Try changing the order of loading the js files it got things working for me.

    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="jquery.jstree.js"></script>
    

    Hope this helps, be happy

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

Sidebar

Related Questions

I'm trying get values from a GridView using the following code: foreach (GridViewRow row
I'm new to JQuery and web development in general. I'm trying to load some
I am trying to get my tree view to group a collection of similar
I am trying to implement a tree view in my application. I am using
I am trying to get JsTree to work to get a folder view in
Just trying to get my irb sessions to actually list the current line of
I have a hypothetical tree view that contains this data: RootNode Leaf vein SecondRoot
I am trying to populate a tree view based on a list of staff
Trying to get my css / C# functions to look like this: body {
Trying to get an ASP application deployed; it worked for a while but then

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.