List of avaliable *.js file "plugins"
List of avaliable *.js file "plugins"
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...
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...
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
Ruth
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

Ruth
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:
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:
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....
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.
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;");
Looking at the status bar it shows:
Code: Select all
aI("text="
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>
Hi fulmer,
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!)
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
It's the dreaded "unterminated string constant" error... in this case, the result of unbalanced nested quotes. For your "show clock 1" link, try:fulmer wrote:...First off, if I have a clock in the menu using this code:I can delete it (it's in the menu_data.js file), but I can't put it back.Code: Select all
aI("text="+getMilonicDate()+";align=center;type=clock;");
Code: Select all
<p><a href="javascript:mm_insertItem('clock',2,'text='+getMilonicDate()+';align=center;type=clock;')">show clock 1</a></p>
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.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.
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