I have been able to set the menu items dynamically with ASP script code using something like this:
<% if x=true then %>
aI(text=xxxurl=yyyy);
<% end if %>
This works fine. However, when using the exact same conditional code on the main menu items 'aI(text=zzzzshowmenu=aaaa)';, a javascript error shows up and the menus don't display. Probably a stupid user error..any ideas?
Thanks
Dynamic Main Menu
-
- Beginner
- Posts: 3
- Joined: Tue Mar 28, 2006 1:46 am
- Contact:
If what you entered above as your samples is what you're really using, you have serious syntax problems.
should be...
Same for the ASP. Should be...
etc.
Code: Select all
'aI(text=zzzzshowmenu=aaaa)';
Code: Select all
aI("text=zzzz;showmenu=aaaa;");
Code: Select all
aI("text=xxx;url=yyyy;");
John
-
- Beginner
- Posts: 3
- Joined: Tue Mar 28, 2006 1:46 am
- Contact:
Syntax
This is not a syntax issue. I have the menu syntax correct on the pages and they are working fine. I was giving you an example of the ASP logic that was used with the main menu as the submenus. Of course we are using the the show menu and the syntax is correct.
I was simply trying to explain that the ASP script logic was not working on the main menus but works fine with the sub menus. Taking out the ASP logic, the menus work fine.
It doesn't matter anyway, I found a work around.
I was simply trying to explain that the ASP script logic was not working on the main menus but works fine with the sub menus. Taking out the ASP logic, the menus work fine.
It doesn't matter anyway, I found a work around.