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:42

DHTML?


Poster: flobadob
Dated: Friday February 2 2007 - 1:36:49 GMT

I am struggling with the 'DHTML' features of the menu. I have a website with a menu which will have different items in it for each customer. The website is built dynamically using mod_perl and mason. How can I tell the milonic menu what menuitems to create? Clearly I cannot edit the menu_data.js file.


Poster: flobadob
Dated: Friday February 2 2007 - 12:42:07 GMT

OK, after some digging I guess I need to write a mason component which writes out the menu_data.js file? I want to create my menu structure via an xml description, so I suppose my code to fire up the menu would be something like this...

Code:
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"); </script>
<& menu_data.mas?xmlfile=mydata.xml &>


where menu_data.mas writes the correct javascript ? Am I on the right track? The <& blah &> stuff is mason which just calls a component called blah.

rgds,
Kristian.


Poster: Ruth
Dated: Friday February 2 2007 - 18:10:17 GMT

Hi,

I do not know anything about mason, however there is an xml menu in the download, in the extras folder.

I know that you can rename the menu_data.js file for things like php, asp, cfm i.e. menu_data.php, menu_data.asp, menu_data.cfm something about it then going through that processor :? . Unfortunately, there doesn't seem to be anyone on the forum conversant with Mason or Perl, so that's all I can tell you.

Ruth