Re[3]: Hide Dropdown menu - Handle mouseover events on menu item
2005/08/02 17:35
Viewed 8957 times
Replies: 1/2

Hi,

The onmouseover thing can't be solved at this time. In the future we might implement support for this--how urgent would you need it? I can't promise anything faster than 3 weeks...

About closing the menu, the problem is the modal dialog itself. This, AFAIK, is an IE extension (doesn't work with other browsers) and it will stop any JS code the moment the dialog is displayed. A quick an easy workaround is to open the modal dialog after a short time (during that time the JS engine will manage to hide the popups). For example:

setTimeout(function() { openModalDialog(...); }, 200);

Hope this helps.

Re[4]: Hide Dropdown menu - Handle mouseover events on menu item
2005/08/02 21:25
Viewed 10548 times
Replies: 1/1

Thanks for the reply.

Whenever you get the on mouse over working let us know. Its not a priority as now. would be nice having that feature.

I checked the hiding of menu using setTimeout doesnt work. The menu stays there. I called the below function on menu click event.
Am i doing right let me know

function showModal()
{

setTimeout('',200)
window.showModalDialog(strURL,'',strOptions);

}

<li id="smenu32" onclick="showModal()">

last
Re[5]: Hide Dropdown menu - Handle mouseover events on menu item
2005/08/03 09:13
Viewed 12055 times
Replies: 0/0

Oh, not like this! :-)  The "setTimeout" call in JavaScript doesn't introduce a delay--it only delays code execution.  That's a bit different.  Modify your function like this:

function _doShowModal() {
window.showModalDialog(strURL, "", strOptions);
}

function showModal() {
setTimeout(_doShowModal, 200);
}

What happens now is that your click handler will setup the _doShowModal function to execute 200 milliseconds after the item was clicked; that's plenty of time for the popups to go away.  Feel free to try a smaller value, such as 50ms.

Please let me know if that solved the problem.

last
Google