Recent Questions Dhtmlxtree Getpath
Q: I see that you have the demo of the menu working over a frame so that it displays over the lower frame, vertical top to bottom.
However I have played around with your demo and can't seem to replicate the same feature.
Could you please tell me what I have to set to make the easy dropdown menu float over the lower framed window?
A: To initialize the cross frame menu call dm_initFrame() function instead of standard dm_init() function within data.js file:
dm_initFrame(framesetID, mainFrameInd, subFrameInd, orientation);
framesetID - id attribute of the frameset;
mainFrameInd - index of the main frame (where the top-menu is placed), >=0;
subFrameInd - index of the subframe (where the submenus will be shown), >=0;
orientation - frame orientaion: 0 - top-to-bottom, 1 - left-to-right; 2 - bottom-to-top; 3 - right-to-left.
For example, for the following structure:
<frameset id="frmSet" rows="185,*">
<frame id="frame1" src="cross-frame-horizontal-1.htm">
<frame id="frame2" name="testlink.htm" scrolling="no">
</frameset>
the dm_initFrame() function call at the end of data.js file will look like:
dm_initFrame("frmSet", 0, 1, 0);
Q: I have a popup that in one of the submenus has an input field. There is a problem – if the user clicks into the entry field, but moves the mouse outside the java swing menu, the menu can close while the user is still typing. Is there any way to prevent that from happening?
A: You can make submenus to stay visible till you click outside the menu or scroll your page.To enable this feature you should set the following parameter:
var smHidePause=-1;
You can set this parameter to each submenu individually usingIndividual Submenu Styles.
Q: I have set up the dhtml menu javascript at this site. I have chosen to use the transitional filter from IE6. The main menus and sub menus work fine in IE but in Firefox the sub menus do not appear at all. Is their a fix for this. I realize that firefox does not support IE transitions but Ithought the sub menus would appear when the main item is clicked on. that hs not happened. Go to above URL and vie in both IE and Firefox and you will see what I mean.
A: You couldn't see submenus in FF because you had
var transparency="";
You should set your parameters in the following way:
var transparency="100";
var itemBackColor=["#072450",""];
Q: I pushed the js files you attached and it fixed my Trial error message but now my left menus APPLMENU.JS and APPL2MENU.JS won't mouse over and won't open the submenus and it gives a javascript error.
A: Now you have several errors in you data files appl2menu.js andapplmenu.js.
Now you have
var menuBackColor="cccccc";
var menuBorderWidth="";
var itemBorderWidth="";
This is not right.
Try to write them:
var menuBackColor="#CCCCCC";
var menuBorderWidth="0"; //this parameter cannot be empty
var itemBorderWidth="0"; //this parameter cannot be empty