Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

124
Views
obtenga el nombre del nodo en el que se hizo clic de jstree

Estoy tratando de obtener el nombre del nodo en el que se hizo clic de jstree

No soy bueno en ajax. Estoy intentando de esta manera que encontré pero no funciona, y no sé de dónde viene el problema.

 folderTreeView = $(".folderpreview"); var datanew = JSON.parse(data) // Files Treeview if (folderTreeView.length) { folderTreeView.jstree({ core: { themes: { dots: false, }, data: datanew.children, }, plugins: ["types"], types: { default: { icon: "far fa-folder font-medium-1", }, ".jpg": { icon: "far fa-file-image text-info font-medium-1", }, ".docx": { icon: "far fa-file-word text-info font-medium-1", }, ".pdf": { icon: "far fa-file-pdf text-info font-medium-1", }, }, }); folderTreeView .on("changed.jstree", function (e, data) { var i, j, r = []; for (i = 0, j = data.selected.length; i < j; i++) { r.push(data.instance.get_node(data.selected[i]).name); } $("#event_result").html("Selected: " + r.join(", ")); }) .jstree({ core: { data: { url: function (node) { return node.id === "#" ? "./ajax_roots.json" : "./ajax_children.json"; }, data: function (node) { return { 'id' : node.id}; }, }, }, }); }
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!