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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:13:26+00:00 2026-05-25T17:13:26+00:00

I am using jQuery Dynatree checkboxes to filter markers by date in a Google

  • 0

I am using jQuery Dynatree checkboxes to filter markers by date in a Google Map here: http://crocdoc.ifas.ufl.edu/projects/chameleonmapdev/

The checkboxes for specific dates work just fine, but I am having trouble figuring out how to best make the month checkboxes show/hide all the appropriate markers. I was hoping for some sort of onChange event that I could attach to the date checkboxes (since they do get checked/unchecked if the parent checkbox does), but I can’t seem to find anything like that in the documentation ( http://wwwendt.de/tech/dynatree/doc/dynatree-doc.html#h5.1 ) so I am using the onSelect function, though this will not automatically target dates if a parent month is selected. I would like to get an array of the keys of all children if a folder is checked/unchecked. So far, I can retrieve the object describing all children, but I’m not sure how to parse it since the keys are in objects inside that object.

      onSelect: function(select, node) {
        console.log('isFolder: '+node.data.isFolder);
        if (node.data.isFolder === true) {
            console.log(node.data.children);
                //Parse node.data.children to get array of child keys

        } else {

            if (select === false) {
                for (g in marker_container[node.data.key]) {
                    marker_container[node.data.key][g].setMap(null);
                }
            }
            if (select === true ) {
                for (g in marker_container[node.data.key]) {
                    marker_container[node.data.key][g].setMap(map);
                }   

            }

        }
      }

node.data.children returns:

 [Object { title="July 12, 2011", select=true, key="July1211"}, Object { title="July 14, 2011", select=true, key="July1411"}, Object { title="July 26, 2011", select=true, key="July2611"}, Object { title="July 27, 2011", select=true, key="July2711"}, Object { title="July 28, 2011", select=true, key="July2811"}]

Any hints are greatly appreciated. And I am very open to any suggestions on how to improve this code in general.

  • 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-25T17:13:27+00:00Added an answer on May 25, 2026 at 5:13 pm

    Parsing isn’t quite the right term here. What you see in the log is a string describing the object, but there’s no need to parse it. The brackets [ and ], enclosing the comma separated objects, indicate that node.data.children is an array containing the child objects. Each object has a property named ‘key’, which you can get by iterating over the array like this:

    if (node.data.isFolder === true) {
        var keys = [];
        for (var i = 0; i<node.data.children.length; i++){
            keys[i] = node.data.children[i].key;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using jQuery's dynaTree in my application and I want to select the all
I am currently using dynaTree jQuery plugin to render a tree. <div id=tree style=height:100px;>
Using jQuery I want to check if checkboxes or radio button inside a div
Using jQuery, how can I: Have all checkboxes on a page turned checked on
using jQuery I have the following code: var selectedIdsArray = $(#selectId option:selected).map(function(){return this.value;}); var
Using jQuery and given this <ul> <li> <a external=http://stackoverflow.com href=home.htm>Link 1</a> </li> <li> <a
Using JQuery how to check if any checkboxes are checked and then set the
Using jQuery , how can I dynamically set the size attribute of a select
Using jQuery, how do you bind a click event to a table cell (below,
Using jQuery, how do you check if there is an option selected in a

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.