can you do dynamic url parameters/variable in the menu items

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
naclhead
Beginner
Beginner
Posts: 3
Joined: Tue Aug 03, 2004 5:55 pm

can you do dynamic url parameters/variable in the menu items

Post by naclhead »

I use Cold Fusion. I usually pass a variety of of URL parameters via Cold Fusion variables to display the page I want.

Ex:
<cfoutput>
http://www.teenchallenge.com/index.cfm? ... =#centerID#
</cfoutput>

Where #centerID# is a dynamic CF variable. I didn't expect it to work in the menu_array.js page and it didn't.

Is there a way for me to pass these varibales in this DHTML menu. If not I'm stuck.

Thanks,
Todd
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Yes, it works with ColdFusion. A Search for 'coldfusion' in the 'Version 5.0' Topic brings up 21 hits with lots of info.

Second thought is to rename that page to menu_array.cfm.

Here's a snip from one of mine...

Code: Select all

with(milonic=new menuname("system")){	
style=XPMenuStyle;
borderwidth=1;
orientation="vertical";
aI("text=Browser: <cfoutput>#cgi.http_user_agent#</cfoutput>;image=/sai/graphics/xpblank.gif;");
aI("text=Code Name: "+navigator.appCodeName+";image=/sai/graphics/xpblank.gif;");
aI("text=Color Depth: "+screen.colorDepth+" bit;image=/sai/graphics/xpblank.gif;");
aI("text=IP: <cfoutput>#cgi.remote_addr#</cfoutput>;image=/sai/graphics/xpblank.gif;");
aI("text=Language: "+navigator.browserLanguage+";image=/sai/graphics/xpblank.gif;");
aI("text=Platform: "+navigator.platform+";image=/sai/graphics/xpblank.gif;");
aI("text=Screen Max: "+screen.availWidth+"  x  "+screen.availHeight+";image=/sai/graphics/xpblank.gif;");
aI("text=Screen Resolution: "+screen.width+"  x  "+screen.height+";image=/sai/graphics/xpblank.gif;");
}
John
Post Reply