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

showing a popup via the OnMouseDown event


Poster: hkbloke
Dated: Wednesday March 5 2008 - 18:02:56 GMT

I have a <div> with an image in it which i use to display a pop-up menu (actually the content of the div is populated via an ajax call). When I click on the image the popup menu does not show. If i put the same image outside the div and click it the menu displays perfectly.

The declaration of the menu is in the main page body itself (i.e. not inside the div).

Is there something special i have to do to laucnh a popup menu from a link inside a div.

Edit - been reading the FAQs on the milonic site and have seen that the menu cannot be placed inside a div. Just to confirm that in my situation the menu is outside the div but the popup() call is inside.

Re: launching a popup from within a div


Poster: Ruth
Dated: Wednesday March 5 2008 - 18:33:43 GMT

Hi,

The menu can be placed in a div, it just requires a specific method. Can you please give us a page so we can test?

Ruth

Re: launching a popup from within a div


Poster: hkbloke
Dated: Wednesday March 5 2008 - 18:35:32 GMT

The site is wip. Let me see if i can put a test harness together. Where should i send it ?

Re: launching a popup from within a div


Poster: hkbloke
Dated: Wednesday March 5 2008 - 19:32:59 GMT

I have done some further investigation and it has nothing to do with the div (sorry for the wrong steer) - the problem lies when i try to use the OnMoyseDown event to fire the popup(...) call.

Is there a workaround/solution for this ?

Re: showing a popuo via the OnMouseDown event


Poster: Ruth
Dated: Wednesday March 5 2008 - 19:34:31 GMT

Hi,

Well, you can paste the code here for a test page. The problem is that we need to have all relevant items, i.e. the full page code, the full css code, and the menu data code. You could zip this and send to me, it would be ruth [at] poems2u.com.

Ruth

Re: showing a popuo via the OnMouseDown event


Poster: Ruth
Dated: Wednesday March 5 2008 - 19:36:23 GMT

Have you looked at the methods and functions page with note to the popup popdown functions of the menu?

http://www.milonic.com/menu_methods.php

They are the two bottom items on that page.

Ruth

Re: showing a popuo via the OnMouseDown event


Poster: hkbloke
Dated: Wednesday March 5 2008 - 19:51:37 GMT

Absolutely. I'm using the popup method.

<a href="javascript:popup('MyMenu')">show</a> ....... works

but <td OnMouseDown="popup('MyMenu')">show</td> .......does not.

I hagve seen other 3 yr old threads discussing this same prob - just wondering if there is a solution.

Re: showing a popuo via the OnMouseDown event


Poster: Ruth
Dated: Wednesday March 5 2008 - 20:28:32 GMT

Hi,

Unfortunately, I need the see the stuff and experiment, can't do it off the top of my head. So, if you want to post the full popup coding you have I'll see if I can create a menu and test it. Also, I found a post about popup which has the onMouseDown in it, it's swapping images but it has the full call code.

viewtopic.php?p=17850#p17850

Ruth

Re: showing a popuo via the OnMouseDown event


Poster: hkbloke
Dated: Wednesday March 5 2008 - 20:35:44 GMT

To be fair Ruth you don't need my code to experiement - just put together a simple menu and try and do a popup via the '<a href' and 'OnMouseDown' event. The first will work but the 2nd won't.

If not then even though i would prefer to stary with Milonicn i guess i have no option but to use a different DHTML menu product

Re: showing a popup via the OnMouseDown event


Poster: hkbloke
Dated: Wednesday March 5 2008 - 20:37:01 GMT

btw - i also found this thread

viewtopic.php?f=10&t=6820&p=33127&hilit=OnMouseDown#p33127

Re: showing a popup via the OnMouseDown event


Poster: Ruth
Dated: Thursday March 6 2008 - 0:38:36 GMT

Well, I will see if I can find something to use. I'm not sure why you are using the onMouseDown, is this from a form button or something? Is there some reason not to use onclick? While I am searching for this, I'll post to Milonic and see if they have any idea. I am only a forum volunteer who likes this menu, I do not work for Milonic, I don't do functions, I am not real savvy on a lot of web stuff, I'm just pretty good an finding solutions when I have something exsiting to test.

Ruth

Re: showing a popup via the OnMouseDown event


Poster: hkbloke
Dated: Thursday March 6 2008 - 2:10:03 GMT

ruth - i was not aware of the volunteer nature of your forum involvment.

I have changed my code to use the OnClick instead of OnMouseDown and all works well. bizarre!

Many thanks for your help.

Re: showing a popup via the OnMouseDown event


Poster: Ruth
Dated: Thursday March 6 2008 - 3:33:06 GMT

Hi,

You're very welcome. I have posted to Milonic to find out about the onMouseDown. I don't know what the difference is between that and onclick :) they seem to do the same thing, though I do remember seeing that onMouseDown for the swapImage which I think is Macromedia...

Ruth