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

Remembering position of dragable menus


Poster: Columcille
Dated: Thursday February 9 2006 - 2:15:09 GMT

I've just been playing with the dragable menus and am wondering if anyone knows a way to record the top and left position of a menu after it has been dragged? I'm wanting a way to store the position in a database so the menu will remain where the user wants it when they move from page to page. The code to store the data isn't a problem, I'm just not sure how to get the current menu top and left position.


Poster: Columcille
Dated: Thursday February 9 2006 - 2:18:32 GMT

well, 2 minutes after posting my question I may have found my own answer. :) I really did look around before asking, just not careful enough I guess. So, from the page http://www.milonic.com/menu_methods.php I learned of the gpos method which returns the current position and dimensions of any menu. Looks like exactly what I wanted! Thanks to everyone that would have replied if I hadn't answered myself first. :)


Poster: Columcille
Dated: Thursday February 9 2006 - 2:22:06 GMT

I do have another question to throw out. Would there be any way to detect a move menu event? I've got an idea or two of what to do if not, but the simplest and probably most efficient code would be to store the position right after a move event, so I just have to figure out how to detect those events. :)


Poster: Columcille
Dated: Thursday February 9 2006 - 2:29:03 GMT

okay, I'm not going to post any more on this hehe. But I think I've found another solution. The dragable.js scriptlet is not obfuscated, so tweaking it would be relatively minor. Rather than trying to detect a drag event from outside, the script itself could be modified to call another function at the end of a drag event. I haven't looked it over carefully, but this would probably go in _DDstop().


Poster: Ruth
Dated: Thursday February 9 2006 - 6:42:12 GMT

Hi,

Not a problem on finding the solutions. We have all done that, if we would admit it ;) I thank you for posting what you found. It's real frustrating when someone finds their solution and posts "nevermind, found it" Well, heck, let us know what it is! :lol:

As to the last question and your solution. That is probably not going to be a problem, but you really are not supposed to modify code. Milonic are very good about things like that, we just ask that you contact them with your desire on it, they probably will have no problem, but I can't speak for them.

Ruth

Re: Remembering position of dragable menus


Poster: vhenin
Dated: Thursday October 22 2009 - 14:59:21 BST

Hi Everybody,

I am creating a Portfolio Online for my drawings and illustrations.
I am using a Milonic dragable menu.

This post is exactly what I was looking for: a way for the dragable menu to stay in place even whenever the webpage is refreshed or changed.
I saw the reply of and went to this page:
http://www.milonic.com/menu_methods.php
for the array gpos ( Object_Ref )

But where do I have to place this function? In which .js?
Could you please help me understand how to use it?

Thanks a lot on forehand for your help,

Vincent

Re: Remembering position of dragable menus


Poster: vhenin
Dated: Friday November 13 2009 - 9:09:38 GMT

Can someone help me???
Pleeeaaase....

Thanks!

Vincent