Skip to main content

Bug Tracker

Side navigation

#3768 closed bug (invalid)

Opened January 02, 2009 05:00PM UTC

Closed October 13, 2009 12:32AM UTC

Last modified March 14, 2012 10:25PM UTC

[tooltip] Tooltip in UserControl with an UpdatePanel disappears

Reported by: klogan Owned by:
Priority: major Milestone: 1.3
Component: unfiled Version: 1.2.6
Keywords: updatepanel, usercontrol, .net Cc:
Blocked by: Blocking:
Description

I am using the tooltip from http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ in .NET, inside of a UserControl. The UserControl has an UpdatePanel inside of it that is triggered by a button. After clicking the button and causing the AJAX update post back, the tooltips are not displayed. The events are firing, but there is a problem in the javascript code for this situation.

1. after the AJAX postback, in the update function, the current property is null, so the function returns and no tooltip is then displayed.

To fix this I added two fixes (see the attached file and search for custom).

1. I added this to the $.fn.extend function - this.each(function() {

custom

if (((typeof(this.toolTipText) == "undefined") || this.toolTipText == "") && this.title != "") {

this.tooltipText = this.title;

}

2. I needed to force the helper class to be recreated, so in the createHelper function I added this:

// custom

if (helper.parent) {

helper.parent = null;

}

Using these fixes/hacks will lose some of your performance gains from checking for the helper.parent and reusing (instead of recreating it), so there might be better way of addressing this issue. The scenario could be quite common for .Net developers, but not for other language developers. Is it worth putting in the trunk of the code?

Attachments (1)
  • jquery.tooltip.js (10.0 KB) - added by klogan January 02, 2009 05:00PM UTC.

    the tooltip javascript file with the proposed fixes (search for // custom)

Change History (1)

Changed October 13, 2009 12:32AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

This is not a jQuery core bug. Please use the jQuery forums or contact the author via the method they request. For jQuery UI plugins, please file a bug on http://dev.jqueryui.com .