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

Context Menu and Google Maps


Poster: ecg921 __at__ gmail.com
Dated: Wednesday February 22 2006 - 4:23:11 GMT

I'm using the latest release version of the menu and I don't have anything for anyone to look at since I am developing on my laptop right now but I think this should be something tthat can be answered without having to see it.

I have figured out a way to get the right click menu to show up when right clicking on a Google Map. The only problem is the menu doesn't disappear after the close menu time limit expires. It only disappears when you rollover a menu item then roll off the menu. It works, or should I say disappears, fine on a right click any where outside of the Google Map.

So, is there something I can do to get the menu to disappear like it is suppose to, without having to rollover a menu item, when it is used with Google Maps?

Thanks,

Eric


Poster: Migru
Dated: Wednesday February 22 2006 - 9:16:54 GMT

Hi

Did you try "closeonclick" ?
Pls see the item properties:
http://www.milonic.com/itemproperties.php

Quote:
Allows the menu to be closed by a click of the mouse on the main menu aswell it automatically closing as the mouse rolls off the selected menu.
Values: 'true', 'false', '0' or '1'
Example: closeonclick=1;
Example: closeonclick=true;


Michael


Poster: ecg921 __at__ gmail.com
Dated: Wednesday February 22 2006 - 15:43:30 GMT

Thanks for the suggestion but closeonclick still requires the user to either rollover the menu or click on it to get it to close. I want the menu to behave as it does normally and close automatically even if the user does not rollover it.


Eric


Poster: Migru
Dated: Wednesday February 22 2006 - 16:05:40 GMT

Hi

there are - in general - no reasons, why the menu doesn´t close.
See the Milonic sample pages. there the context menu closes.

There could be a different reason, syntax, order of js files loaded not correct etc. etc.

So, if a url is not provided, help is limited.

Michael


Poster: ecg921 __at__ gmail.com
Dated: Wednesday February 22 2006 - 16:15:08 GMT

The menu behaves as it should anywhere else on the page except when called by right clicking on the Google Map.

I haven't changed any of the Milonic code as of yet because I am just trying to see what happens and I placed the Milonic scripts in the same order as in the demo.

Nothing is different from the demo except the placement of a Google Map object on the page.

I apologize for not having something for you to look at but that isn't possible right now and I didn't think it would really be of any benefit since nothing is different except the placement of the Google Map on the page.

Thanks,

Eric


Poster: Andy
Dated: Thursday February 23 2006 - 10:49:52 GMT

Hi,

Just to butt in here - in order to debug this I would definately need to see a URL as I've no idea how you would go a bout integrate the menu with Google maps,

Sounds like a great idea so if you can provide a URL or some code or at least something that we can work from I'm sure we could find the problem.

Cheers,
Andy


Poster: ecg921 __at__ gmail.com
Dated: Thursday February 23 2006 - 15:49:50 GMT

No worries about "butting" in. All comments are welcomed.

I fixed it where you can click to close the menu - like the way you close the Windows right click menu.

I can't show you anything now as the web page only sits on my laptop. It needs to get further along before I can put it up on the development server. Right now I am in the very early stages. Trying differnt things and figuring out how I can get things to work. I am trying to replace a cumbersome Java Web application that allows you to view, edit and add information related icons on a map for event management at a state DOT.

BTW, I may be using the Milonic tooltip to display the information associated with the icons on the Google Map instead of the Google Map Info Bubble. I have it working already but I'm not sure if it is what I want yet.

Once I have it posted where you can view it, I will let you know.

Thanks,

Eric