|
|
|
I'm wondering if you can use the ASP code within Item Link of the dropdown menu javascript?
Return to Recent Questions
Q:
I'm wondering if you can use the ASP code within Item Link of the dropdown menu javascript, like in your FAQ below, only replacing the
Javascript with ASP?
Q: I want to use Javascript code instead of usual links for dropdown menu javascript items. How can I do that?
A: You should add a function word "javascript:" in the URL field of an dropdown menu javascript item, e.g.:
var menuItems = [
[text, "javascript:alert('Hello, world!')", icon1, icon2],
];
A:
You can use any server-side script, e.g., PHP, ASP, VB, etc in the dropdown menu javascript.
You can find the example with PHP here:
http://dhtml-menu.com/menu/generate-menu-from-database-xml-php-asp-vb-support.html
http://dhtml-menu.com/menu/rq-loading-bar-MySQL-support.html
Return to Recent Questions
Related:
- Apr 06, 2009 - Can the link items NOT open a new window in the menu javascript css?
- Apr 15, 2009 - My mainmenu items are not links. So I need no link cursor for these html menu javascript items.
- Jul 28, 2009 - Is it possible to have menu pop up items act like regular hyperlinks?
- Jul 30, 2009 - I need the cursor not to change when hovering over items which don't have links in dhtml expandable menu
- Aug 26, 2009 - I want to change the pop up menu code item link text from status bar messages to another value?
- Oct 16, 2009 - We want the hyperlink works fine for main items in javascript drop menu
- Dec 12, 2009 - The menus popup opens a new window although I haven't set item's target...
- Dec 20, 2009 - Is it possible to add the javascript code to the cascade menu instead of a standard links?
- Jan 24, 2010 - How I can put an asp code within menus using javascript items?
- Jan 25, 2010 - Can a menu web design item that expands the submenu items when selected work as link?
- Feb 07, 2010 - May I can use PHP code in menu items of my script drop down menus?
|