|
|
We want to make this collapsible menu Dynamic by reading from a Microsoft SQL Data base.
Return to Recent Questions
Q:
We are wanting to make this collapsible menu Dynamic by reading from a Microsoft SQL Data base.
What is the approach in accomplishing this?
A:
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.:
<noscript><a href="http://deluxe-tree.com">Javascript Tree Menu by Deluxe-Tree.com</a></noscript>
<script type="text/javascript" src="menudir/dtree.js"></script>
<script type="text/javascript" language="JavaScript1.2">
// and describe parameters of a menu
var parameter1=value1;
var parameter2=value2;
etc.
var tmenuItems = [
// here you generate items using server-side scripts (php, asp, vb, etc.)
];
The example of the menu working with PHP/MYSQL you can find here:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.html
This example is not for Deluxe Tree menu, but you can create your menu in the same way.
Return to Recent Questions
Related:
- Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Oct 06, 2006 - Where I can find data.js file for tree javascript menu?
- Oct 27, 2006 - I'm trying to get a cascading menu that will float as I scroll down the page.
- Nov 10, 2006 - I can't make my vertical dynamic menu work in at Dreaweaver template - why?!
- Nov 22, 2006 - I cannot get the background color of the html popup menu to change
- Dec 02, 2006 - I have several questions about dynamic horizontal menu.
- Dec 09, 2006 - Is it possible to have css drop down menu items act like regular hyperlinks?
- Dec 11, 2006 - How to add the new items to the dhtml vertical menu without using two data.js files?
- Dec 25, 2006 - How do you created a multiple column for only one menu js item.
- Jan 12, 2007 - Does your dynamic menu allows to keep the menu-item that has been pressed hightlighed?
|