(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    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:
Beautiful Slider jQuery Application Reputable Drag and Drop Web Builder | Overview  |  Exceptional MP4 to HTML5 Converter Review  |  Great MP4 to HTML5 Generator Tutorial  |  First-rate Easy Website Builder | How-to Guide  |  Fantastic Bootstrap Page Themes For Your Company  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | AI Website Builder | Best AI Website Builder | AI Website Generator | AI Website Generator