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

tooltip error on mouseover - but I'm not using tooltips


Poster: kexik_white
Dated: Monday January 16 2006 - 12:29:05 GMT

JavaScript error appears if you move on item, which call popup menu, but definition for this item is missing in data file.

Line: 21
Char: 8397
Error: '_m[...].tooltip' is null or not an object
Code: 0

Try move mouse over link "t-zones"
http://t-mobile.cz/Web/Default.aspx

Is possible to correct behavior to previous menu version without throwing this error? Thanks.


Poster: Ruth
Dated: Monday January 16 2006 - 16:07:12 GMT

Hi,

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

This is the sample for the new tooltips. You'll have to take a look at the source of the page since the sample is still being developed. From the source you can see how the different uses are coded, i.e. in the menu, from a text link. For example, to code a tooltip from a text link it would be

Code:
<a class=link href=# onmouseover="showtip('I\\\'m a Tooltip From a Text Link');" onmouseout=hidetip();>Tooltips From a Text Link</a>


You'll also need to get the new tooltips module, it's about 1/2 way down the page.

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

Ruth

Not about tooltips


Poster: kexik_white
Dated: Tuesday January 17 2006 - 13:52:42 GMT

Thanks for your reply, but this problem is not about using tooltips - I completly dont use tooltips, but the problem with "tooltips in error message" still persist, it probably depends on some changes in menu due tooltips upgrade?

Re: Not about tooltips


Poster: kevin3442
Dated: Wednesday January 18 2006 - 0:57:09 GMT

kexik_white wrote:
Thanks for your reply, but this problem is not about using tooltips - I completly dont use tooltips, but the problem with "tooltips in error message" still persist, it probably depends on some changes in menu due tooltips upgrade?


Hello,

From your first post ("...call popup menu, but definition for this item is missing in data file"), I think you understand the root cause of the error, but if I understand you correctly, you seem to be asking if the error message for a genuine error state can be suppressed.

The "tooltips" part of the error message is somewhat incidental and does not appear in other browsers... e.g., Firefox reports that "_m[$m] has no properties". The error is happening because you are passing the name of a non-existent menu to the popup() function; there is no "T-zones" menu defined in ClientFunction.PopUpMenu.js.aspx, or anywhere else. The error occurs during conditional testing in the popup() function, which is also used by the tooltip functionality (if you're using tooltips). But the problem here is not caused by lack of tooltips; it's caused because the menu object -- _m[$m] -- does not exist to apply the conditional test. The solutions would be (1) make sure the menu you are trying to popup is defined, or (2) don't call popup() for menus that have not been defined.

Hope that helps,

Kevin