jquery msdropdownhttp://forums.asp.net/t/1772484.aspx/1?jquery+msdropdownWed, 29 Feb 2012 09:30:56 -050017724844844979http://forums.asp.net/p/1772484/4844979.aspx/1?jquery+msdropdownjquery msdropdown <p>Hello all,</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I am using msdropdown for styling my dropdown with images. But i am not able to give tooltips to the items of dropdowns as the title attribute is used to hold the image path. Can anyone please suggest me, how to show tooltip when i am using msdropdown.&nbsp;</p> <p>MSDropDown - jquery.dd.js</p> <p>Version: 2.37.5</p> 2012-02-22T10:34:40-05:004848239http://forums.asp.net/p/1772484/4848239.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Hi, you can add&nbsp;mouseover event to your page so that if the mouse over the image (in the option), it can show some tooltip. For example:</p> <pre class="prettyprint">$('img').mouseover(function () { $('#tooltip').empty(); $('#tooltip').html(&quot;Tooltip&quot;); });</pre> <p>And then please add the following codes to your markup beside dropdown:</p> <pre class="prettyprint">&lt;div id="tooltip"&gt;&lt;/div&gt;</pre> 2012-02-24T01:18:13-05:004848473http://forums.asp.net/p/1772484/4848473.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Hello Allen,</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;But its not working. I have a &quot;select&quot; control. And at page load event , i have added title attribute to show tooltip, because tooltip is not its property. So when the page loads then it shows me a cross symbol instead of image. and even &nbsp;image mouseover is not working.</p> <p></p> <p></p> 2012-02-24T05:17:25-05:004848495http://forums.asp.net/p/1772484/4848495.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Hi,</p> <p>Try this-</p> <p><a href="http://growingtech.blogspot.in/2012/02/using-msdropdown-with-tooltips-plugin.html">http://growingtech.blogspot.in/2012/02/using-msdropdown-with-tooltips-plugin.html</a></p> 2012-02-24T05:31:27-05:004848651http://forums.asp.net/p/1772484/4848651.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Hi, it seems that the image path in &quot;title&quot; attribute is incorrect, please check it. Additionlly, plesae refer to the following links&nbsp;and try again:</p> <p><a href="http://www.marghoobsuleman.com/jquery-image-dropdown">http://www.marghoobsuleman.com/jquery-image-dropdown</a></p> <p><a href="http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/normal.html">http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/normal.html</a></p> 2012-02-24T06:49:32-05:004851942http://forums.asp.net/p/1772484/4851942.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Hi,</p> <p>&nbsp; &nbsp; &nbsp; &nbsp;Actually am applying theme dd2 as</p> <p>&#36;(&quot;#cboEmpMsgTypes&quot;).ready(function (e) {<br> &nbsp;&#36;(&quot;#cboEmpMsgTypes&quot;).msDropDown({ mainCSS: 'dd2' }).data(&quot;dd&quot;);<br> &nbsp;&#36;(&quot;#ver&quot;).html(&#36;.msDropDown.version);<br> &nbsp;});</p> <p>so how can i call onInit&nbsp;function for msdropdown? I have tried it, but not working and even i am filling items dynamically to the dropdown and giving tooltip to it by server side. So how can i add dummy attribute to items??&nbsp;</p> 2012-02-27T04:50:53-05:004852135http://forums.asp.net/p/1772484/4852135.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <h3 class="post-title"><a title="asteranup" href="http://forums.asp.net/members/asteranup.aspx">aster</a>&nbsp;has suggestted the method to call&nbsp;<span>onInit&nbsp;function:</span></h3> <p><span><a href="http://growingtech.blogspot.in/2012/02/using-msdropdown-with-tooltips-plugin.html">http://growingtech.blogspot.in/2012/02/using-msdropdown-with-tooltips-plugin.html</a></span></p> 2012-02-27T06:30:40-05:004852636http://forums.asp.net/p/1772484/4852636.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Hi,&nbsp;</p> <p>&nbsp; &nbsp; &nbsp; I have tried onInit function, but then style is not applying on my dropdown, the above code i mentioned. Both simultaneously not working. It is looking very wierd. All messed up items.&nbsp;</p> 2012-02-27T10:43:39-05:004853756http://forums.asp.net/p/1772484/4853756.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>I tried his codes and found they worked, please try the following codes:</p> <pre class="prettyprint">&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head runat=&quot;server&quot;&gt; &lt;title&gt;&lt;/title&gt; &lt;script src=&quot;http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt; &lt;script src=&quot;http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/msdropdown/js/jquery.dd.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/msdropdown/dd.css&quot; /&gt; &lt;script src=&quot;http://jquery.bassistance.de/tooltip/jquery.tooltip.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt; &lt;link href=&quot;http://jquery.bassistance.de/tooltip/jquery.tooltip.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt; &lt;script type=&quot;text/jscript&quot;&gt; $(document).ready(function (e) { try { $(&quot;#webmenu&quot;).msDropDown({ onInit: callAfterInitialization }); } catch (e) { alert(e.message); } }); function callAfterInitialization() { $(&quot;a[id*=webmenu]&quot;).tooltip({ track: true, delay: 0, showURL: false, fade: 250, bodyHandler: function () { return $(&quot;select[id*=webmenu] option:eq(&quot; &#43; this.id.substring(this.id.lastIndexOf(&quot;_&quot;) &#43; 1) &#43; &quot;)&quot;).attr(&quot;tooltipdata&quot;); }, showURL: false }); } &lt;/script&gt; &lt;style type=&quot;text/css&quot;&gt; div#tooltip { z-index: 20000; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt; &lt;div&gt; &lt;select name=&quot;webmenu&quot; id=&quot;webmenu&quot;&gt; &lt;option value=&quot;calendar&quot; tooltipdata=&quot;Calendar tip&quot; title=&quot;http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/icons/icon_calendar.gif&quot;&gt; Calendar&lt;/option&gt; &lt;option value=&quot;shopping_cart&quot; tooltipdata=&quot;Shopping Cart tip&quot; title=&quot;http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/icons/icon_cart.gif&quot;&gt; Shopping Cart&lt;/option&gt; &lt;option value=&quot;cd&quot; tooltipdata=&quot;CD tip&quot; title=&quot;http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/icons/icon_cd.gif&quot;&gt; CD&lt;/option&gt; &lt;option value=&quot;email&quot; selected=&quot;selected&quot; tooltipdata=&quot;Email tip&quot; title=&quot;http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/icons/icon_email.gif&quot;&gt; Email&lt;/option&gt; &lt;option value=&quot;faq&quot; tooltipdata=&quot;FAQ tip&quot; title=&quot;http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/icons/icon_faq.gif&quot;&gt; FAQ&lt;/option&gt; &lt;option value=&quot;games&quot; tooltipdata=&quot;Games tip&quot; title=&quot;http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/icons/icon_games.gif&quot;&gt; Games&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;</pre> 2012-02-28T00:28:20-05:004853931http://forums.asp.net/p/1772484/4853931.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>I have tried above code and its working for tooltip but when i tried to aplies the other theme not the default one, the tooltip is not displaying.</p> <p>How should i use these two statements?</p> <pre class="prettyprint">$(&quot;#webmenu&quot;).msDropDown({ mainCSS: 'dd2' }).data(&quot;dd&quot;);</pre> <pre class="prettyprint">&#36;("#webmenu").msDropDown({ onInit: callAfterInitialization });</pre> <p>please suggest.</p> 2012-02-28T03:52:54-05:004853951http://forums.asp.net/p/1772484/4853951.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Hi,</p> <p>Try this-</p> <pre class="prettyprint">$(&quot;#webmenu&quot;).msDropDown({ mainCSS: 'dd2', onInit: callAfterInitialization });</pre> 2012-02-28T04:20:27-05:004854082http://forums.asp.net/p/1772484/4854082.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Thanks :)</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;It worked for me. Now both are working fine, but when a partial postback occurs, then again tooltips are lost, even some time on selectindex change the tooltip becoming transparent.</p> <p>Please suggest me code for selected item of dropdown also. Thanks in advance.&nbsp;</p> 2012-02-28T05:51:22-05:004854118http://forums.asp.net/p/1772484/4854118.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Hi,</p> <p>Check this post-</p> <p><a href="http://forums.asp.net/p/1759576/4789371.aspx/1?Re&#43;JQuery&#43;Code&#43;not&#43;working&#43;properly&#43;after&#43;cascading&#43;dropdownlist&#43;is&#43;used&#43;">http://forums.asp.net/p/1759576/4789371.aspx/1?Re&#43;JQuery&#43;Code&#43;not&#43;working&#43;properly&#43;after&#43;cascading&#43;dropdownlist&#43;is&#43;used&#43;</a></p> 2012-02-28T06:06:05-05:004854412http://forums.asp.net/p/1772484/4854412.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Hi,&nbsp;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I am getting an error on pointing the mouse over the items of dropdown after the postback as</p> <p>&quot;Microsoft JScript runtime error: 'nodeType' is null or not an object.&quot; in jquery.tooltip.js file</p> <p>That's why it is not displaying the tooltips. Why this error is coming, any idea?</p> <p></p> 2012-02-28T08:37:33-05:004855686http://forums.asp.net/p/1772484/4855686.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Hi, please add the following codes to your markup and check the result again:</p> <pre class="prettyprint">$(document).ready(function () { Sys.WebForms.PageRequestManager.getInstance().add_endRequest(callAfterInitialization); });</pre> 2012-02-29T00:17:04-05:004856533http://forums.asp.net/p/1772484/4856533.aspx/1?Re+jquery+msdropdownRe: jquery msdropdown <p>Give the Dropdown a css class then add this..</p> <p></p> <pre class="prettyprint">$(&quot;.CssClassName&quot;).tipTip();</pre> <p>That's it...</p> 2012-02-29T09:30:56-05:00