DHTML?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
flobadob
Beginner
Beginner
Posts: 7
Joined: Fri Feb 02, 2007 2:33 am

DHTML?

Post by flobadob »

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.
flobadob
Beginner
Beginner
Posts: 7
Joined: Fri Feb 02, 2007 2:33 am

Post by flobadob »

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: Select all

<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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Post Reply