|
|
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?
- Oct 06, 2006 - Where I can find data.js file for tree javascript menu?
- Nov 10, 2006 - I can't make my vertical dynamic menu work in at Dreaweaver template - why?!
- Dec 02, 2006 - I have several questions about dynamic horizontal menu.
- Dec 11, 2006 - How to add the new items to the dhtml vertical menu without using two data.js files?
- Jan 12, 2007 - Does your dynamic menu allows to keep the menu-item that has been pressed hightlighed?
- Feb 18, 2007 - The dynamic menu javascript disappears, it goes BEHIND the flash and can't be seen
- Feb 20, 2007 - Can I divide data file of my dhtml menu javascript for several files?
- Feb 27, 2007 - Obviously your dynamic drop down menus are NOT cross browser usable
- March 15, 2007 - In my dynamic html menu I'm getting an error - Error: 'floatable' is undefined
- April 12, 2007 - How can I add the separator to the submenus of my javascript dynamic menu?
|