Can I include a dynamic link for my URL?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
pvandermn
Beginner
Beginner
Posts: 1
Joined: Thu Jan 17, 2008 12:32 am

Can I include a dynamic link for my URL?

Post by pvandermn »

I want to be able to set the menu's destination dynamically in the menu_data.js file, but have had no luck. I'm just a little familiar with js, but don't know why this code isn't working. I am trying to pull the value for the variable 'newsearch' from a cookie, and make it the url. When I open the page, the menu doesn't appear at all. Any help would be greatly appreciated!

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
orientation="horizontal";
style=menuStyle;
top=10;

var newsearch = Request.Cookies("Gateway")("SearchCriteria");

aI("text=&nbspPrior Search&nbsp url="+newsearch+";target=_parent;");
aI("showmenu=Actions;text=Actions");
aI("showmenu=Data;text=Data;");
}
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Can I include a dynamic link for my URL?

Post by Ruth »

Hi,

I think you will have to contact Milonic direct about this. No one on the forum has the knowledge to help for such as js functions. If you have a professional or above license go here http://milonic.com/support/
if not, try this http://milonic.com/contact.php

Ruth
Post Reply