List of avaliable *.js file "plugins"

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
fulmer
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Dec 08, 2003 9:00 am
Location: Hachioji, Japan
Contact:

List of avaliable *.js file "plugins"

Post by fulmer »

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://milonic.com/changecolorsbyclick.js
http://milonic.com/divhider.js
http://milonic.com/dragdrop.js
http://milonic.com/tooltips.js
http://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://milonic.com/menu.php), but that is not a simple list of javascript plugings...
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
fulmer
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Dec 08, 2003 9:00 am
Location: Hachioji, Japan
Contact:

Post by fulmer »

Hi John,

Thaks for the reply.
Hopefully this isn't too much of a pain for them to get up :D
fulmer
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Dec 08, 2003 9:00 am
Location: Hachioji, Japan
Contact:

Post by fulmer »

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

Post by Ruth »

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
fulmer
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Dec 08, 2003 9:00 am
Location: Hachioji, Japan
Contact:

Post by fulmer »

Thanks Ruth!
That new one is a little tricky... Gonna have to study up on that one ;)
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

My two cents:

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

Cheers,

Kevin
fulmer
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Dec 08, 2003 9:00 am
Location: Hachioji, Japan
Contact:

Post by fulmer »

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

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

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

<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.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi fulmer,
fulmer wrote:...First off, if I have a clock in the menu using this code:

Code: Select all

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

<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
fulmer
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Dec 08, 2003 9:00 am
Location: Hachioji, Japan
Contact:

Post by fulmer »

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