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

Separate files?


Poster: Celtic
Dated: Thursday July 24 2003 - 8:51:45 BST

Not knowing JavaScript as well as I will eventually, I'll have to ask this question now:

Is it possible to have the sub-menus in separate files?

The reason that I ask, is that I want to have those menus that change more frequently separated out from the static menus. I don't have SQL access from my ISP to build the menus dynamically, and it would save me a lot of time.

Iain.


Poster: kevin3442
Dated: Tuesday July 29 2003 - 0:47:34 BST

Hi Iain,

It seems to me that since the submenus are simply defined with javascript, you should be able to break their definitions into multiple .js files that you source into your pages. Just be careful not to duplicate menu names across files that are to be used in the same page, or you'll probably find that one gets lost.

Kevin


Poster: John
Dated: Tuesday July 29 2003 - 17:45:11 BST

Guess I don't understand what difference it would make which file(s) the subs are in. One way or another, you have to edit. Seems to me you'd be asking for trouble by breaking things up - just one more thing that could go wrong.