#3768 closed bug (invalid)
[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.
- 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).
- I added this to the $.fn.extend function - this.each(function() {
custom
this.toolTipText == "") && this.title != "") { |
this.tooltipText = this.title;
}
- 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)
Change History (2)
Changed 14 years ago by
Attachment: | jquery.tooltip.js added |
---|
comment:1 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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 .
the tooltip javascript file with the proposed fixes (search for custom)