<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Add image in tooltip</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>vivek.patel on Add image in tooltip</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p25640</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p25640</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I want to have a toop tip on my JQuery Grid and i tried the method you have described but it does not work for me.</p>
<p>I want to add a toop tip which contrains both some text and image or screen shot. Please help me.</p>
</p>
<p>Thanks,</p>
<p>Vivek</p>
]]></description>
        	        	<pubDate>Wed, 11 Jan 2012 23:15:21 +0200</pubDate>
        </item>
        <item>
        	<title>Candrairawan78 on Add image in tooltip</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p21078</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p21078</guid>
        	        	<description><![CDATA[<p>Dear Phil,</p>
<p>Yoou are awesome. It works. It helped me so much.</p>
<p>Thank you very much.</p>
<p>Best Regards,</p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Thu, 02 Dec 2010 17:37:55 +0200</pubDate>
        </item>
        <item>
        	<title>ppr on Add image in tooltip</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p21072</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p21072</guid>
        	        	<description><![CDATA[<p>Hi Candra,</p>
<p>I try answering to your 2 questions:</p>
<p><strong>1/ How to show the tooltip image on "Tax" column (and take the content from "Inv No" Column) ?</strong></p>
<p>In your example, You can do that:<br />&#160;- After the line</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7254' value='Select Code' data-codeid='sfcode7254' /></p>
<div class='sfcode' id='sfcode7254'>var col1=...</div>
<p>&#160;you add this line:<br />&#160;&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8635' value='Select Code' data-codeid='sfcode8635' /></p>
<div class='sfcode' id='sfcode8635'>&#160;var col4= $(this).find(&#34;td:eq(4)&#34;);</div>
<p>&#160;- and you replace the line <br />&#160;&#160; &#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8407' value='Select Code' data-codeid='sfcode8407' /></p>
<div class='sfcode' id='sfcode8407'>$(col1).qtip({</div>
<p>by this one:<br />&#160;&#160; &#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit847' value='Select Code' data-codeid='sfcode847' /></p>
<div class='sfcode' id='sfcode847'>$(col4).qtip({</div>
<p>Now the tooltip image will show on "Tax" column and the image tooltip is build from "Inv No" column.<br />&#160;&#160; &#160; <br />&#160;<br /><strong>2/ How to show the tooltip image where the basename of image file is based on content from "ID of row" ?</strong></p>
<p><strong></strong><br />In this Jqgrid example, the "id" of row is localized in the html code "&#60;tr id="&#60;content ID row&#62;" ... &#62;".<br />So you need to get the content of the attribute of "id" from "&#60;tr...&#62;".<br />To do this:</p>
<p>- after the line in your example</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5248' value='Select Code' data-codeid='sfcode5248' /></p>
<div class='sfcode' id='sfcode5248'>var col1=...</div>
<p>you add this line:<br />&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2788' value='Select Code' data-codeid='sfcode2788' /></p>
<div class='sfcode' id='sfcode2788'>var idrow = $(this).attr(&#34;id&#34;);</div>
<p>- and you replace this line: <br />&#160;&#160; &#160;&#160;&#160;&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2349' value='Select Code' data-codeid='sfcode2349' /></p>
<div class='sfcode' id='sfcode2349'>var thumbnail_url=&#34;images/&#34;+$(col1).html()+&#34;.jpg&#34;;</div>
<p>by this one:<br />&#160;&#160; &#160;&#160;&#160; &#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1277' value='Select Code' data-codeid='sfcode1277' /></p>
<div class='sfcode' id='sfcode1277'>var thumbnail_url=&#34;images/&#34;+idrow+&#34;.jpg&#34;;</div>
</p>
<p>&#160;Hope this will help.</p>
<p>&#160;<br />&#160;Best regards<br />&#160;Phil</p>
]]></description>
        	        	<pubDate>Thu, 02 Dec 2010 10:15:40 +0200</pubDate>
        </item>
        <item>
        	<title>Candrairawan78 on Add image in tooltip</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p21056</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p21056</guid>
        	        	<description><![CDATA[<p>Dear all,</p>
<p>You gave an example that "inv no" column content is the basename of an image called "&#60;content&#62;.jpg" file.<br />So, the content "1&#8243; will show in a tooltip the "1.jpg image", "2&#8243; shows in a tooltip the "2.jpg" image and so on&#8230;</p>
<p>How if I want to have a thumbnail based on primary ID of a row?</p>
<p>for example a row with primary ID = xxx will show in a tooltip the "xxx.jpg image" and so on...</p>
<p>Best Regards,</p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Wed, 01 Dec 2010 15:08:41 +0200</pubDate>
        </item>
        <item>
        	<title>Candrairawan78 on Add image in tooltip</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p21055</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p21055</guid>
        	        	<description><![CDATA[<p>Dear ppr,</p>
<p>Thank you for your guide to jquery qtip. I was success to follow your step but I got problem when I want to change thumbnail tooltip when the cursor is on "Tax" column (fifth column).</p>
<p>I have changed the code to:</p>
<p>var col1= $(this).find("td:eq(4)"); // Fifth column Tax</p>
<p>and the image did not show.</p>
<p>Could you help me solve this problem, please? Thank you</p>
<p>Best Regards,</p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Wed, 01 Dec 2010 14:19:03 +0200</pubDate>
        </item>
        <item>
        	<title>ppr on Add image in tooltip</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p21039</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p21039</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
<p>I used an extension called jquery.qtip plugin to do this in my application.<br />And it works well with Firefox and IE.<br />To see the plugin for dynamically loaded thumbnail tooltip, see this example here: </p>
<p><a rel="nofollow" href="http://craigsworks.com/projects/qtip/demos/content/thumbnail" target="_blank"></a><a href="http://craigsworks.com/project" rel="nofollow" target="_blank">http://craigsworks.com/project</a>...../thumbnail</p>
<p>You can apply the same way in Jqgrid. <br />To see an example, take the "JSON Data" sample in "Loading data section" section of jqgrid demo.<br />You want to show a thumbnail tooltip when the cursor is on "Inv No" column.<br />You define that "inv no" column content is the basename of an image called "&#60;content&#62;.jpg" file.<br />So, the content "1&#8243; will show in a tooltip the "1.jpg image", "2&#8243; shows in a tooltip the "2.jpg" image and so on&#8230;<br />To do this, on the server side, make a folder "images" containing all the image files 1.jpg to 13.jpg.</p>
<p>In jqgrid, to link&#160; the column "Inv No" content with a thumbnail tooltip, insert the code (in jsonex.js) after ColModel, line 14 with the <br />"loadComplete" event handle like this:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadComplete : function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("#list2 tr").each(function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var col1= $(this).find("td:eq(0)"); // First column Inv No<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var thumbnail_url="images/"+$(col1).html()+".jpg"; // Build image link<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(col1).removeAttr("title"); // Remove old title<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var image=&#39;&#60;img src="&#39;+thumbnail_url+&#39;" alt="Chargement imagette&#8230;" width=100 height=100 /&#62;&#39;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(col1).qtip({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; content: image,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; position: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; corner: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; tooltip: &#39;bottomMiddle&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; target: &#39;topMiddle&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; style: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; tip: true, // Give it a speech bubble tip with automatic corner detection<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name: &#39;blue&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }, // loadComplete</p>
</p>
<p>You have to download the jquery.qtip extension at:<br /><a rel="nofollow" href="http://bazaar.launchpad.net/~craig.craigsworks/qtip/1.0/files" target="_blank"></a><a href="http://bazaar.launchpad.net/~c" rel="nofollow" target="_blank">http://bazaar.launchpad.net/~c</a>...../1.0/files<br />Note: you need this special version because it fixes a bug in the ajax content download<br />(For more explanation: <a rel="nofollow" href="http://craigsworks.com/projects/forums/thread-qtip-ajax-and-net" target="_blank"></a><a href="http://craigsworks.com/project" rel="nofollow" target="_blank">http://craigsworks.com/project</a>.....ax-and-net )<br />Put the downloaded version in a folder js/jquery.qtip<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;<br />And declare the jquery.qtip extension in the head of (jqgrid.html) in the javascript section like this: <br />&#160; &#60;script src="js/jquery.qtip/jquery.qtip-1.0.min.js" type="text/javascript"&#62;&#60;/script&#62;</p>
</p>
<p>To summerize, if your Jqgrid_demoXX is installed on your hard disk on &#60;your path&#62;, the new folders were here:</p>
<p>&#60;your path&#62;Jqgrid_demo36/images</p>
<p>&#60;your path&#62;Jqgrid_demo36/js/jquery.tip</p>
<p>Two files to change: &#60;your path&#62;Jqgrid_demo36/jqgrid.html</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;your path&#62;Jqgrid_demo36/jsonex.js</p>
<p>Hope this will help.</p>
]]></description>
        	        	<pubDate>Tue, 30 Nov 2010 01:24:18 +0200</pubDate>
        </item>
        <item>
        	<title>Candrairawan78 on Add image in tooltip</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p20987</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p20987</guid>
        	        	<description><![CDATA[<p>Dear all,</p>
<p>I have tried to use tooltip above and did not success, does anybody can guide me with a working sample tumbnail image hover pease?I have a project with a lot of goods and i need tumbnail images to make it easy.</p>
<p>Best regards,</p>
<p>Candra</p>
]]></description>
        	        	<pubDate>Thu, 25 Nov 2010 03:27:07 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Add image in tooltip</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p19804</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p19804</guid>
        	        	<description><![CDATA[<p>setCell can be used set only title attribute on the corresponding &#60;td&#62; html element like &#60;td title="My ToolTip"&#62;. So setting of html code on the place of html attributes will not work.</p>
<p>To implement the behavior which you need you have to bind all &#60;td&#62; elements (grid cells) with mouseover and mouseout functions which will be display the custom tooltips with images. You can do such binding inside of loadComplete event handle.</p>
<p>To make your implementation easy you can try to use some existing ToolTip plugin like <a href="http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/" rel="nofollow" target="_blank"><a href="http://bassistance.de/jquery-p" rel="nofollow">http://bassistance.de/jquery-p</a>.....n-tooltip/</a>, <a href="http://plugins.learningjquery.com/cluetip/,&#160;http://flowplayer.org/tools/demos/tooltip/any-html.html&#160;and" rel="nofollow" target="_blank"><a href="http://plugins.learningjquery" rel="nofollow">http://plugins.learningjquery</a>......l&#160;and</a> so on.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Thu, 16 Sep 2010 03:08:24 +0300</pubDate>
        </item>
        <item>
        	<title>betty on Add image in tooltip</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p19803</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-image-in-tooltip#p19803</guid>
        	        	<description><![CDATA[<p>Using the custom formatter, I can add images to jqgrid cells. But the images are in their small version, and I would like to add a tooltip for the images. Basically, users can view the big version of image when they mouseover the small image.</p>
</p>
<p>I played with the setCell function and assigned image src directory to &#39;title&#39;. The tooltip displayed, but just the string of image src.</p>
<p>My question is how to add the actual image in the tooltip?</p>
</p>
<p>setCell(rowid, &#39;colName&#39;, &#39;&#39;,&#39;&#39;,{&#39;title&#39;:"&#60;img sr=&#39;/images/picture_big.jpg&#39;&#62;"})</p>
</p>
<p>Thanks very much.</p>
]]></description>
        	        	<pubDate>Thu, 16 Sep 2010 02:18:22 +0300</pubDate>
        </item>
</channel>
</rss>