<?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: populate photo from a db to a grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid</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/populate-photo-from-a-db-to-a-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>phicarre on populate photo from a db to a grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p12415</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p12415</guid>
        	        	<description><![CDATA[<p>For those who are looking for the/one solution:</p>
<p>afterInsertRow: function(rowid, aData, rowelem){ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#&#39; + rowid + &#39; td:first-child + td + td + td&#39;).<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html(&#39;&#60;img src =&#39; + &#39;&#8221;&#39; + aData.photo + &#39;&#8221;&#39; +&#39; height=&#8221;75&#8243; width=&#8221;75&#8243; /&#62;&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
<p>- aData.photo is the path of the photo on the server</p>
<p>- "photo" is the colName</p>
<p>- the photos are stored in the fourth column in my solution</p>
</p>
<p>If you have a better and elegant solution, tell me it <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
]]></description>
        	        	<pubDate>Wed, 25 Nov 2009 09:00:57 +0200</pubDate>
        </item>
        <item>
        	<title>phicarre on populate photo from a db to a grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11993</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11993</guid>
        	        	<description><![CDATA[<p>You are right: I should test ...</p>
<p>But, but I have in the cell the path to the photo and not the photo itself !</p>
]]></description>
        	        	<pubDate>Mon, 16 Nov 2009 16:15:19 +0200</pubDate>
        </item>
        <item>
        	<title>markw65 on populate photo from a db to a grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11979</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11979</guid>
        	        	<description><![CDATA[<blockquote>
<p>src=&#39;/photos/ : javascript will search for this folder on your machine !</p>
</blockquote>
<hr />
<p>No, it wont. Try it.</p>
</p>
<p>Mark</p></p>
]]></description>
        	        	<pubDate>Mon, 16 Nov 2009 08:32:06 +0200</pubDate>
        </item>
        <item>
        	<title>phicarre on populate photo from a db to a grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11952</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11952</guid>
        	        	<description><![CDATA[<p>The server is one machine, the clients are thier own machine. You could be one client ! the photo are not in your machine but in my machine.</p>
<p>src=&#39;/photos/ : javascript will search for this folder on your machine !</p>
]]></description>
        	        	<pubDate>Sat, 14 Nov 2009 12:21:11 +0200</pubDate>
        </item>
        <item>
        	<title>Rumen[Trirand] on populate photo from a db to a grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11945</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11945</guid>
        	        	<description><![CDATA[<p>I am not sure I understand the scenario. What is the problem if the picture is in a directory on the server?</p>
]]></description>
        	        	<pubDate>Sat, 14 Nov 2009 09:20:41 +0200</pubDate>
        </item>
        <item>
        	<title>phicarre on populate photo from a db to a grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11940</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11940</guid>
        	        	<description><![CDATA[<p>No because the directory is on the server !</p>
]]></description>
        	        	<pubDate>Sat, 14 Nov 2009 04:59:32 +0200</pubDate>
        </item>
        <item>
        	<title>Rumen[Trirand] on populate photo from a db to a grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11935</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11935</guid>
        	        	<description><![CDATA[<p>In this case the best idea is to form the HTML of the image tag directly, instead of using formatters (and I believe there is no image formatter currently yet).</p>
<p>So just form the image tag, e.g.</p>
</p>
<p>&#8221;&#60;img src=&#39;/photos/&#8221; . $row[&#39;Photo&#39;]." /&#62;"</p>
]]></description>
        	        	<pubDate>Sat, 14 Nov 2009 02:06:31 +0200</pubDate>
        </item>
        <item>
        	<title>phicarre on populate photo from a db to a grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11929</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/populate-photo-from-a-db-to-a-grid#p11929</guid>
        	        	<description><![CDATA[<p>I have on the server a directory with photos.</p>
<p>I have in my mysql database records with a field &#39;photo&#39;. the field contains the name of the photo.</p>
<p>I want to populate a grid with these photos with the json method.</p>
<p>I tried this:</p>
<p>while ...</p>
<p>$responce-&#62;rows[$i][&#39;id&#39;]=$row[&#39;Id_Resident&#39;];<br />$responce-&#62;rows[$i][&#39;cell&#39;]=array($row[&#39;Nom&#39;],$row[&#39;Prenom&#39;],$row[&#39;Sexe&#39;],"/photos/".$row[&#39;Photo&#39;]); <br />$i++;</p>
<p>echo json_encode($responce);</p>
<p>But the result is a link to the photo AND not the photo !</p>
<p>Same result if i do:</p>
<p>formatter:&#39;showlink&#39;,&#160; formatoptions:{baseLinkUrl:&#39;/photos/&#39;},</p>
]]></description>
        	        	<pubDate>Fri, 13 Nov 2009 18:05:07 +0200</pubDate>
        </item>
</channel>
</rss>