Knowledge Base support case for Likno Drop Down Menu Trees, abstracted and stripped of all user’s private info.


Initial Email From:
Ernesto
Initial Email Subject: Manualy start Tree in a defined "Level" (branchid ?)
Support Case Month: May 2012

Hello from Switzerland,
I need a short help to open a existing tree in a defined first level.
I tested something like:

<script type="text/javascript">
treeid.selectBranch("myTree_0_0");
</script>

But, I'm not sure about if this is correct and also if my tree-Name is
correct. How can I check this.
Thanks for a short example.
Br, Ernesto

Reply From: Likno Customer Support

Dear Ernesto,

I will need to check your actual page in order to know what the exact code should be.

I tried following the link you sent, but I get a “server not found” error. Can you please send the correct URL for me to see?

Best Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Ernesto

Hello 

hm, yes. but we need this in a login protected site, so maybe this is not possible to send a running link to you.
I will attach a testfile to you, using exact the same structure.
On this test page I have the same problems on my system.
The used stucture on my webserver for the whole tree is:
projectroot\assets\navigation\tree_it   ...so you have to change this. 
Please note:
- a) We need possibility to open a page on a defined level for startup using different calls like:
      test.htm?id=it or something. On the attached testpage I have removed all this to test only the
      function to open the tree in a specific level.
      And additional, it must be showed opened and highlighted (both).
- b) I installed the whole project on a internal server named like "xxx" so for using it
      we use it for our project like http://xxx/it_projects
      So a next problem is, using this links I can show no tree.
      Using http://10.166.xxx.xxx/it_projects is running. 

Thanks for your help.
BR, Ernesto

Reply From: Likno Customer Support

Dear Ernesto,

Your tree compiled project name is “tree”, so this is the variable you need to use. What you need to do is to open the parent item of the item you want to highlight (if applicable), then highlight the item.

For example the following code:

setTimeout

Will produce this result:

drop down tree

Keep in mind that all numbering starts from “0”, so “1” is the second item.

Best Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Ernesto

Hello Kostas,

🙂 ups... yes now I see....

Thanks a lot.
BR, Ernesto

Reply From: Likno Customer Support

Dear Ernesto,

Also note in my example that I have set everything to run half a second later (using “setTimeout”).

This is essential to ensure that the tree has had the time to load and construct itself.

Let me know if you need anything else.

Best Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Ernesto

Hello Kostas, 
yes, done and tested on my page. All works perfect now.
Thanks again for the "perfect" support. 
Br. Ernesto

Tags: , ,