Login Register

Tooltip Issues

Attempt 1 problem:

When quickly mousing over a tooltip link, the hidetooltip in the onmouseout will not fire since the tooltip delay means the tooltip isn't open in order to be closed. If I remove the delay it's fine though obviously not ideal.

I see the same issue I'm having in my page when viewing dijit/tests/test_Tooltip.html

Anyone have a work around?

I'm using showtooltip in an onmouseover function and hidetooltip in the onmouseout of the same object.

Attempt 2 problem:

In this attempt I have abandoned showtooltip and hidetooltip in favor of creating tooltip widgets which removes my need for onmouseover and onmouseout with Attempt 1.

I am creating the tooltips dynamically in a widget that has 2 calendars embedded. The onMouseOver is triggered from the date and month in the header of the calendars and works perfectly the first time the calendar is opened. But, as soon as the next calendar is opened the tooltip jumps to the top left corner of the page, the location of the tooltip is no longer associated with the objects within the calendar. They still properly trigger the display, just not the location.

Is there anything similar to

Is there anything similar to jQuery's hover function in dojo?

Is this a bug? You can view

Is this a bug?

You can view it yourself if you go to dijit/tests/test_Tooltip.html

It doesn't happen on 1.1.1 so I'm guessing it was a bug that was fixed. I'm locked to 1.0.2 at the moment for work, so I need to find a solution there.

It appears that with showtooltip the tip can be created and yet not linked to the node that it was created for so that hidetooltip doesn't function even when called explicitly.