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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:27:18+00:00 2026-06-11T02:27:18+00:00

Now i’m using dtree.js for my treeview on my page, but it’s showing on

  • 0

Now i’m using dtree.js for my treeview on my page, but it’s showing on the top (i’m using rails asset pipeline, and writed this code in other js file (not in haml))…
But it’s appending to document, but i need to some class or id, moreover, in jquery look-like code in some cases i must hide all this tree, i don’t know how to do this in siple js, only on jquery. But this is very good tree for my app, could’not change it.
Or is it any good tree with same way of adding data (for example: id, par id, link, name) ? Without any json-look like code etc…

amiscompany = new dTree('amiscompany');
amiscompany.add(10001,-1,'<a style="text-decoration:underline;" onclick="fade();" rel="nofollow" href="/search_trees/category/cat=">Каталог запчастей</a>');
amiscompany.add(10441,10001,'Внутренняя отделка',"/search_trees/category/cat=10441?SEL=1");
amiscompany.add(12797,10441,'Багажник / помещение для груза',"/search_trees/category/cat=12797?SEL=2");
amiscompany.add(10830,10441,'Комплектующие',"/search_trees/category/cat=10830?SEL=3");
.....
document.write(amiscompany);
amiscompany.openTo(0, true);
  • 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-11T02:27:19+00:00Added an answer on June 11, 2026 at 2:27 am

    The best way to write your tree is to generate a <ul> and <li> directly in whatever server-side language you are using. This makes your web site fully visible to Google.

    You can do things like you want with the dTree library. I played with it once, but found it too hard to control to my liking.

    I know you said you didn’t want something that looked like JSON but you didn’t explain why. If you are going to write your own function to do things, JSON really is the cleanest way and you can have it generate and build your list. Using localStorage you can even remember which tree items were expanded or closed and render the tree in the same shape from page to page.

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

Sidebar

Related Questions

Now this might sound simple, but I'm a bit mixed up. I am trying
Now this might look like a duplicate thread, but my question is that I
Now I use ShakeListener follow this site . It works but a little more
Now this is .NET but I am sure the principal should apply to all
Now I initialize my OpenGL view by this code: glLoadIdentity(); glViewport(0, 0, w, h);
Now i know there have been a lot of question about this, but i
Now this is a tricky question, with the concern of not using tables or
Now I'm not sure if this is something I'm doing wrong, or something thats
Now I'm trying to display the result of consuming a webservice from one page
Now that my facebook app has got more than 1000 likes -- https://apps.facebook.com/156485447732146/ But

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.