Note that there are some explanatory texts on larger screens.

plurals
  1. POScript does not work correctly inside updatepanel
    text
    copied!<p>I have a script for displaying tooltips</p> <pre><code> function BindToolTip(){ $('.toolTip').hover( function () { this.tip = this.title; $(this).append( '&lt;div class="toolTipWrapper"&gt;' + '&lt;div class="toolTipTop"&gt;&lt;/div&gt;' + '&lt;div class="toolTipMid"&gt;' + this.tip + '&lt;/div&gt;' + '&lt;div class="toolTipBtm"&gt;&lt;/div&gt;' + '&lt;/div&gt;' ); this.title = ''; this.width = $(this).width(); $(this).find('.toolTipWrapper').css({ left: this.width - 22 }) $('.toolTipWrapper').fadeIn(300); }, function () { $('.toolTipWrapper').fadeOut(100); $(this).children().remove(); this.title = this.tip; } ); } </code></pre> <p>aspx file look like:</p> <pre><code>&lt;asp:UpdatePanel ID="UpdatePanelAddNews" UpdateMode="Conditional" runat="server"&gt; &lt;ContentTemplate&gt; &lt;script type="text/javascript"&gt; Sys.Application.add_load(BindToolTip); &lt;/script&gt; &lt;div class="toolTip" title="This is a simple tooltip made with jQuery"&gt;&lt;/div&gt; &lt;asp:UpdatePanel ID="UpdatePanelDate" runat="server"&gt; &lt;ContentTemplate&gt; &lt;asp:DropDownList ID="DropDownListYearStart" runat="server" AutoPostBack="true" OnSelectedIndexChanged="OnSelectedStartDateChanged" CssClass="dropdown"&gt; &lt;/asp:DropDownList&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p>When I hover the div, it displays tooltip correctly, but after doing postback with dropdownlist, when I hover div first time it displays two tooltips, one is empty and other tooltip with text behind the first. When I hover second time, it display only the empty tooltip. I know that if I remove line: this.title = ''; from script it will work fine, but it is goint to display two tooltips, my custom one, and the default windows tooltip. How to solve it?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload