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

  • Home
  • SEARCH
  • 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 8108939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:15:53+00:00 2026-06-06T01:15:53+00:00

Im using ajax loading for children nodes in JQuery JsTree plugin. I need to

  • 0

Im using ajax loading for children nodes in JQuery JsTree plugin. I need to refresh all children nodes if I reopen loaded node in web browser.

  • 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-06T01:15:55+00:00Added an answer on June 6, 2026 at 1:15 am

    You can use something like this where on close new class is added to the node that causes node to be refreshed on open. If the class is present. So you can remove the on close_node part and add your own class name for nodes that needs to be refreshed on open

    $(function () {
        var tree_id="#jstree"
        var ajax_again="to-be-refreshed";
    
        $(tree_id).bind("open_node.jstree close_node.jstree", function (e,data) {
            var currentNode = data.args[0];
            if(e.type === "close_node") {
                currentNode.addClass(ajax_again);
            }   
            if(e.type === "open_node") {
                if (currentNode.hasClass(ajax_again)) { 
                    var tree = $.jstree._reference(tree_id);
                    tree.refresh(currentNode);
                }  
            }
        })  .jstree({
    

    or you can use simplified version when all nodes are refresh on open

    $(function () {
        var tree_id="#jstree"
    
        $(tree_id).bind("open_node.jstree close_node.jstree", function (e,data) {
            var currentNode = data.args[0];
            if(e.type === "open_node") {
                var tree = $.jstree._reference(tree_id);
                tree.refresh(currentNode);
            }
        })  .jstree({
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm loading part of my webpage using AJAX, in particular jQuery.load() . With this
I'm loading a page containing a GMaps using the ajax() method of jQuery. The
I have some content that I am loading using jquery ajax. The content has
I am loading feed-items into a ul using this jQuery .ajax() call, which I
i'm loading, using the JQuery ajax() method, an external page with both html and
I'm using the jquery BBQ plugin for my ajax hashchange events and history states.
I'm using some pretty simple JQuery Ajax loading and it works happily everywhere except
Sup guys. I'm loading data into a table using ajax and jquery. This can
I'm loading wordpress pages dynamically using ajax. It fires properly but I need to
I am loading XML flat tree in my jsTree using ajax, so the declaration

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.