|
|
If I try to write a line within ASP brachets ( <% %> ) the dhtml menu bar does not show up
Return to Recent Questions
Q:
Could you please help me with another question?
I am using your regular dhtml menu inside an asp page.
I want to make a call to different javascripts with parameters
from different menu items (Which should work fine.. )
I have now been trying to do this by using the alert() java metod....
This line works perfect:
["|Test A","javascript:alert('Test');", "", "", "", "", "0", "-1", "", ],
But if I try to write the same line within ASP brachets ( <% %> ) the menu does not show up:
<%
response.Write( " ['|Test A','javascript:alert('Test');', '', '', '', '', '0', '-1', '', ], " )
%>>
I have also found that if I remove the parameter inside the javascript like this:
<%
response.Write( " ['|Test A','javascript:alert();', '', '', '', '', '0', '-1', '', ], " )
%>>
the menu will show up and the script will work but since I can
not insert any parameter it is pointless..
How can I achieve this?
I really hope you can help me with this one!
A:
Try to write your code in the following way:
<%
response.Write( " ['|Test A','javascript:alert(\'Test\');', '', '', '', '', '0', '-1', '', ], " )
%>
Return to Recent Questions
Related:
- Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Sep 30, 2006 - The frame below the javascript menubar is moved to the bottom of the page.
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- Oct 30, 2006 - I don't see on my website dhtml mouseover menu that I saw on my local machine.
- Nov 05, 2006 - The font color doesn't change when I roll over the dhtml side menu
- Nov 10, 2006 - I want to set the status bar messages to another than the link text from the xp menu items?
- Nov 12, 2006 - Is this menu bar code compatible under Linux?
- Nov 14, 2006 - Can dhtml menu script work with tables ?
- Nov 17, 2006 - How can I open a new window of a specific dimension in the dhtml toolbar?
- Nov 23, 2006 - It is possible to have context menu work with your tree menu dhtml?
|