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

List of avaliable *.js file "plugins"


Poster: fulmer
Dated: Friday December 17 2004 - 9:58:50 GMT

Hello,

I keep seeing in various posts links to different javascript files that can be used with the standard Milonic javascript files

For example:
http://www.milonic.com/changecolorsbyclick.js
http://www.milonic.com/divhider.js
http://www.milonic.com/dragdrop.js
http://www.milonic.com/tooltips.js
http://www.milonic.com/treemenu.js

I'd like to know if there is a list of avaliable plugins somewhere? I know there is the menu samples page (http://www.milonic.com/menu.php), but that is not a simple list of javascript plugings...


Poster: John
Dated: Friday December 17 2004 - 21:10:48 GMT

There is no complete list as such at this time. Might be a good idea for a menu addition on the main site. I'll pass it on.

Thanks.


Poster: fulmer
Dated: Tuesday December 21 2004 - 1:29:17 GMT

Hi John,

Thaks for the reply.
Hopefully this isn't too much of a pain for them to get up :D


Poster: fulmer
Dated: Wednesday February 16 2005 - 7:31:46 GMT

Hello,

Is there any update on this?
Or have you guys been too busy making the menu even better then it already is? :D
(I've seen a bunch of updates listed in the past couple of weeks, so you guys must be busy!!)

Patiently waiting... ;)


Poster: Ruth
Dated: Wednesday February 16 2005 - 7:58:56 GMT

I don't really know where to find the various what might be called plug-ins or modules for the menu. But, I do remember one called insertitem.js, There was information on what it is in this THREAD and the url is the same as the others you have, except it has insertitem.js of course.

Yes, they have been busy as little bees on the menu, and even on the site, and I really like the new colors! I don't know if anyone has had time. But, at least you've got one more :D

Ruth


Poster: fulmer
Dated: Wednesday February 16 2005 - 8:25:37 GMT

Thanks Ruth!
That new one is a little tricky... Gonna have to study up on that one ;)


Poster: kevin3442
Dated: Monday February 21 2005 - 23:36:30 GMT

My two cents:

I think insertitem.js might be trumped by mm_menueditapi.js

Cheers,

Kevin


Poster: fulmer
Dated: Tuesday February 22 2005 - 7:53:54 GMT

Hello Kevin,

I played around with that javascript "plugin" you mentioned a little.
It seems to work alright for basic things (which is pretty much what I want).
But I run into a few problems...

First off, if I have a clock in the menu using this code:
Code:
aI("text="+getMilonicDate()+";align=center;type=clock;");

I can delete it (it's in the menu_data.js file), but I can't put it back.

Looking at the status bar it shows:
Code:
aI("text="


I'm sure it's because I'm not formatting the javascript correctly in my html though and not the fault of the menu system as it's dieing at the quotes....
Code:
<p><a href="javascript:mm_deleteItem('clock',1)">hide clock</a></p>
<p><a href="javascript:mm_insertItem('clock',1,'text="+getMilonicDate()+;align=center;type=clock;')">show clock 1</a></p>


The second problem/caveat I had was clicking the link to add a new menu item, and then clicking the link again would add a second item. I could continue clicking until I had lots of the same links. That one isn't such a big deal, it's not likely to happen often anyway, but just thought it was worth mentioning.


Poster: kevin3442
Dated: Thursday February 24 2005 - 7:05:40 GMT

Hi fulmer,
fulmer wrote:
...First off, if I have a clock in the menu using this code:
Code:
aI("text="+getMilonicDate()+";align=center;type=clock;");

I can delete it (it's in the menu_data.js file), but I can't put it back.

It's the dreaded "unterminated string constant" error... in this case, the result of unbalanced nested quotes. For your "show clock 1" link, try:
Code:
<p><a href="javascript:mm_insertItem('clock',2,'text='+getMilonicDate()+';align=center;type=clock;')">show clock 1</a></p>

Only thing is... I messed around with it myself, using your code as a test. And although the item is indeed re-inserted, it seems to be a couple of positions off from the position specified in the call to mm_insertItem(). Off the top of my head (don't shoot me Andy), I suspect an indexing error in the code for the mm_insertItem() function. I may have a look at it to see if I can verify that, but it may take me awhile to figure out what Andy's doing in that bit of code (even though it's somewhat cryptic -- on purpose, for good reason -- it's all firmly implanted in Andy's brain. But us poor hacks have to muddle through!)

fulmer wrote:
The second problem/caveat I had was clicking the link to add a new menu item, and then clicking the link again would add a second item. I could continue clicking until I had lots of the same links. That one isn't such a big deal, it's not likely to happen often anyway, but just thought it was worth mentioning.

In that case, the menu system is just doing what you're telling it to do. However, you could write you own external code to prevent the addition of duplicate items. If it's an issue, holler and maybe we can work something out.

Regarding the calendar thing in your other recent thread... I'm not conversant with how the various available calendar scripts work, but I may have a look at it tomorrow if I can find some time.

Cheers,

Kevin


Poster: fulmer
Dated: Friday February 25 2005 - 1:18:55 GMT

Thanks Kevin,

That helps a lot!

Ya, I figured the second problem was part of the design of the menu system. It's not that big of a deal, 'cause it's not likely to happen too often anyway. I just thought I should mention it incase someone else had questions :D