Recent Questions
Q: I recently purchased DeluxeMenu for a project I'm working on and a new requirement has been submitted.
I am looking for a way to dynamically affectthe contents of menu javascripts
after it's been rendered(displayed) in the browser.
Can this be accomplished with this component?
A: 1) You can use API functions to affect items dynamically:
http://deluxe-menu.com/functions-info.html
2) Generate your menu items dynamically from database.
Unfortunately we don't have working example with ASP.
You may generate a menu from a database or XML using any server-side script, e.g., PHP, ASP, VB, etc.
However, these scripts don't work inside of Javascript .js files, so,
you should move parameters of a menu from a .js file into an html-page, e.g.:
<!-- Deluxe Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<!-- (c) 2008, http://deluxe-menu.com -->
<script type="text/javascript" language="JavaScript1.2">
// and describe parameters of a menu
var parameter1=value1;
var parameter2=value2;
etc.
var menuItems = [
// here you generate items using server-side scripts (php, asp, vb, etc.)
];
</script>>
The example of the menu working with PHP/MYSQL you can find here:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.htmlQ: However when recreating the menus after deleting all trace of the trial version and loading on the licensed version I have developed problems.
When I create menus and test using expression web on explorer it works well but when published to web the dropdown menu appear but cannot be clicked on to be diverted to the relevant links. Also since loading the licensed version when using the test browser in expression web firefox a message appears as follows “firefox dosen’t know how to open this address, because the protocol (c) isn’t associated with any program”.
Please advise I have loaded the licence in the correct way I’m sure.
A: You cannot use local paths on your website. They won't work.
["Home","", "", "", "", "", "0", "0", "", ],
["|Localmag Homepage","C:/Documents and Settings/ME/My Documents/localmagwebsite/index.htm", "", "", "", "", "", "", "", ],
["|Medway Homepage","C:/Documents and Settings/ME/My Documents/localmagwebsite/medwaytowns/medwayhomepage.html", "", "", "", "", "", "", "", ],
["Charity","", "", "", "", "", "0", "", "", ],
["|childrens","C:/Documents and Settings/ME/My Documents/localmagwebsite/medwaytowns/charities/childrenscharities/childrens_charity_home_page.htm", "", "", "", "", "","", "", ],
["|medical","C:/Documents and Settings/ME/My Documents/localmagwebsite/medwaytowns/charities/medicalcharities/medical_charity_home_page.htm", "", "", "", "", "", "","", ],
["|religious","C:/Documents and Settings/ME/My Documents/localmagwebsite/medwaytowns/charities/religiouscharities/religious_charity_home_page.htm", "", "", "", "", "","", "", ],
You should write
["Home","", "", "", "", "", "0", "0", "", ],
["|Localmag Homepage","localmagwebsite/index.htm", "", "", "", "", "", "", "", ],
["|Medway Homepage","localmagwebsite/medwaytowns/medwayhomepage.html", "", "", "", "", "", "", "", ],
["Charity","", "", "", "", "", "0", "", "", ],
["|childrens","localmagwebsite/medwaytowns/charities/childrenscharities/childrens_charity_home_page.htm", "", "", "", "", "", "", "", ],
["|medical","localmagwebsite/medwaytowns/charities/medicalcharities/medical_charity_home_page.htm", "", "", "", "", "", "", "", ],
["|religious","localmagwebsite/medwaytowns/charities/religiouscharities/religious_charity_home_page.htm", "", "", "", "", "", "", "", ],
Q: How can I add a submenu to the parent javascript menu horizontal?
A: You should add '|' symbols before item's text.
["Samples","", "", "", "", "", "", "", "", "", "", ],
["|Sample 1","testlink.htm", "", "", "", "", "", "", "", "", "", ],
["|Sample 2","testlink.htm", "", "", "", "", "", "", "", "", "", ],
["||Sample 2","testlink.htm", "", "", "", "", "", "", "", "", "", ],
Actually you can create your menu easily in Deluxe Tuner GUI tool.Q: I have just purchased your Deluxe Menu multi site license and I'm really enjoying it. I've been able to tweak a menu tree template to achieve the plain and simple expandable menu that I was looking for. However, I do have one quick question. My drop down menu in java script is overlapping some of my page content in both IE and Firefox. I've had the absolute positioning option turned off and on and the menu links still overlap. In Firefox they even move the page content quite a bit. I'm still playing around with it I just thought I would email for suggestions. Any help or tips you can offer would be greatly appreciated.
A: Try to set the following parameter to wrap text:
var tnoWrap=0;