|  |  | 
      Return to Recent Questions I wanted to have 1 javascript ajax tree with 2 root items "Mes alertes" and "My alerts" but it seems impossible to attach a js file to the root of the tree view. 
 
 Q: 
 I've noticed something strange in the Deluxe Tree and I am wondering if this is normal.
 
 Here's an example I have in my "data.js" file to populate the javascript ajax tree:
 
 var tmenuItems = [
 
 ["Mes alertes/My alerts","", "", "", "", "", "", "0", "", "", ],
 ["|Francais","", "", "", "", "", "", "", "", "js/AjaxTreeFr.js", ],
 ["|English","", "", "", "", "", "", "", "", "js/AjaxTreeEn.js", ],
 ];
 
 Here's basically how it goes:
 
 -          Basically the "0" represents a pre-built style that I have set for the root of my tree.
 
 -          Under this are the first child of the root called
 "Francais" and "English" which I link with a JS file to populate
 (Because the users will customize the alerts they
 want to see).
 
 This works perfectly fine. But it is a workaround. Let me explain what I wanted in the first place:
 
 var tmenuItems = [
 ["Mes alertes ","", "", "", "", "", "", "0", "", " js/AjaxTreeFr.js ", ],
 ["My alerts","", "", "", "", "", "", "", "", "js/AjaxTreeEn.js", ],
 ];
 
 Basically I wanted to have 1  javascript ajax tree with 2 root items "Mes alertes"
 and "My alerts" but it seems impossible to attach a js file to the
 root of the tree view. (It doesn't get
 populated).
 
 Any ideas?
 
 A: 
	
 See AJAX feature won't work for first-level in XP style now.
 
 It works if you use:
 var tXPStyle=0;
 
 
 
 
 Return to Recent Questions
 
 Related:
 
 
         Sep 06, 2006 - The Items of the javascript tree view stay expanded in the same state.
Sep 06, 2006 - Can't see my javascript vertical tree menu in FireFox.
Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
Sep 29, 2006 - I tried to use javascript function with the "Title item" of my javascript tree view.
Oct 06, 2006 - Where I can find data.js file for tree javascript menu?
Nov 03, 2006 - I want to use a Flash icon with sound next to the menu items in javascript list menu...
Nov 19, 2006 - How to display my javascript top menu without a border, but my subitems all have a border.
Nov 19, 2006 - Can I create a javascript menu code with one line of the subitems?
Dec 28, 2006 - How do I create more space between the menu items in my simple javascript menu?
Jan 29, 2007 - I want to have a different font and color for my javascript hide submenu items
March 04, 2007 - For some reason all of the javascript dhtml menu items are squished together
 |