Recent Questions Html Treeview JsQ: Hi there, hope someone could help me out.
I am not sure how else to phrase this question and hope this makes sense. You help will be appreciated.
A: You can find more info here:
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, forexample:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem. You can't get this ID after you reload your page. That is why you should write your own code on PHP.
Q: I downloaded the new version of dhtml menu source code copied the files over to my folder this menu was made with3.0 the files I copied over is 3.2 and now I get an error.
A: Now you have:
var fontStyle=["nirmal 12px Trebuchet MS, Tahoma","nirmal 12px Trebuchet MS, Tahoma"];
It is not correct. You should write:
var fontStyle=["normal 12px Trebuchet MS, Tahoma","normal 12px Trebuchet MS, Tahoma"];
Q: I can display time in 12 or 24 hour format in the dhtml date picker- however for the selection it only allows 24 hour format.
A: Try to specify date format in the following way:
%L %d, %Y, %l, %I:%M %p
So, you'll have: January 14, 2009, Jan, 03:50 pm
Q: When I want to have the same width of each item I use the individuel styles sometime it works and sometime not
A: See, when you use Individual styles to set the width for your items
var bstyles = [
you should check that you haven't set the exact width for the menu
Please, check it.