Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:40

Database Menu on ColdFusion CFM Page


Poster: TSFM
Dated: Wednesday February 28 2007 - 15:44:10 GMT

The data menu htm file states:-

The data is stored inside the 4 .csv files, import this into the appropriate table, set up the DSN, username and password and this file should start building menus from a SQL Server database using ASP.

That is no good to me, as I need to run it from a .CFM page.

Is there any solution?

Thanks


Poster: John
Dated: Friday March 2 2007 - 15:28:59 GMT

Not sure I understand the problem here. Build the DB and use CF in whatever way you need to access it. Remember to change the _data file suffix from .js to .cfm if you have any CF code in those statements.

Example - one of my menu items calls up some simple system info...
Code:
   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;");
   }

So, my _data file is now xxx_data.cfm.

I know the above is not using a DB, but the idea is still the same.

HTH...