|
|
Can I use data from a SQL server using ASP for the dhtml xml menu?
Return to Recent Questions
Q:
Can I use data from a SQL server using ASP for the dhtml xml menu?
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.:
<!-- 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) 2006, 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>
Unfortunately we don't have examples with ASP and SQL.
The example of the menu working with PHP/MYSQL you can find here:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.html
Return to Recent Questions
Related:
- Sep 05, 2006 - Can I say to deluxe-menu "use wrapping"?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 17, 2006 - How can your javascript onmouseover menu be set to open by click?
- Sep 23, 2006 - Is it possible that your menu call some javascript onmouseover event?
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Sep 29, 2006 - Is it possible to use an external file in the java drop down menu?
- Oct 06, 2006 - How can I use right-to-left languages in javascript popupmenu?
- Oct 06, 2006 - Where I can find data.js file for tree javascript menu?
- Oct 15, 2006 - There's some problems when we use two javascript horizontal menus.
- Oct 21, 2006 - I want to get the URL or file name to be open in javascript mouseover menu by click...
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
|