Recent Questions Dynatree Json
Q: I am investigating why a few things have not been working for sometime on our site.
This is the error I get in the console "The requested URL /js/menudir/dtree_ss.js was not found on this server."
I update the files awhile back and removed the dtress_ss.js as I was instructed, why is it that it that the script is still trying to reference this file?
What do I have to do to remove this error from java script tree menu?
When I updated the files a few months back the new files seem to fix a problem we were having with Chrome, but broke the drop down menu in Explorer. I have yet to resolve this. The drop down menu appears to work fine in all other browsers.
The nav menu not working in IE7 (not sure about IE6 or IE8) is a bigger issue than the error in the console, but thought maybe they were related. From our analytics, the strong majority of our customers are using IE7.
A: 1) dtree_ss.js
The current version of Javascript/DHTML Tree doesn't have dtree_ss.js at all. You should deletethe following code from your page:
<script language="JavaScript1.2" src="/js/menudir/dtree_ss.js" type="text/javascript"></script>
In the body tag you should write:
<td >
<script src="/js/menudir/data-tree.js" type="text/javascript"></script>
</td>
In the HEAD tag you should write:
<!-- Javascript/DHTML Tree -->
<noscript><a href="http://deluxe-tree.com">java script tree menu by Deluxe-Tree.com</a></noscript>
<script type="text/javascript"> var tWorkPath="/js/menudir/";</script>
<script type="text/javascript" src="/js/menudir/dtree.js"></script>
<!-- (c) 2009, http://deluxe-tree.com -->
2) Error in IE7.
You're using new engine files and old data files for the menus now.
I'm sending you the example.
Use engine files for JavaScript Tree Menu and Javascript/DHTML Tree and data files (data.js and data-tree.js)from it.Q: I can't seem to figure out how to specify the width of individual javascript pulldown menu items. I would like to specify that each menu item on the horizontal take up just 113px regardless of the number of characters in the item. Is there a way of doing that?
A: You should use var itemStyles to set an individual item style. Forexample:
var itemStyles = [
["itemWidth=113px"]
];
var menuItems = [
["text 1", "link", "icon1", "icon2", "tip", "target", "0"],
["text 2", "link", "icon1", "icon2", "tip", "target", "0"],
["text 3", "link", "icon1", "icon2", "tip", "target", "0"],
];
Where "0" - style number in itemStyles that contains the parametersfor items width.
Use Deluxe Tuner GUI to create and assign individual styles.
Q: Hello we have a javascript menu on our site. I want to know howcan we have our vertical drop menu appear for people who do not have javascript enabled on their computer? The problem is whenever someone doesn't have javascript enabled on their computer we get a lot of errors on our stats page for missing menu images. Please let me know how we can eliminate this situation.
A: When your security settings in IE doesn't allow Javascript onpages you load you can't see a dynamic page content. So, you cannotsee your javascript menu at all.
There is no way to enable these preferences automatically, in othercase there are no reasons to create security preferences.
You can use search engine friendly code, so you'll see all yourlinks (for the main items and submenus) when your security settings in IE doesn't allow Javascript.
You can generate search engine friendly code.
JavaScript Tree Menu is a search engine friendly menu since v1.12.
To create a search engine friendly menu you should add additional html code within your html page:
<div id="dmlinks">
<a href="http://deluxe-menu.com">menu_item_text1</a>
<a href="http://deluxe-tree.com">menu_item_text2</a>
...etc.
</div>
To generate such a code use Deluxe Tuner application.
You can find this GUI in the trial package.
Run Tuner, load your vertical drop menu and click Tools/Generate SE-friendly Code (F3).
Q: My site requires me to regularly update the menu by inserting a new menu item at the top of the list. Creating a sub-item automatically places it at the bottom and I haven't yet found a way to move java animated menu items to the top apart from manually editing the data.js file.
A: You should use new engine files v3.2.5 and add items using thefollowing function:
function dm_ext_addItemPos (menuInd, submenuInd, iParams, Pos)
Adds the new item to a submenu.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0. See more info about indexes here.
iParams = [array] - the array of item parameters. This parameter has the same structure as an item in menuItems array. You can assign parameters of another existent item of the menu (for example, when you want to create a duplicate of the existent item) or create new ones.
Structure of iParams:
[item_text, link, icon_normal, icon_over, tip, target, individual_style_index, jsFilename]
Pos - the position in the menu where you want to add new item.
Find more info:
http://deluxe-menu.com/functions-info.html