<?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: I would like to join a cell to the fancybox plugin...</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/i-would-like-to-join-a-cell-to-the-fancybox-plugin</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/i-would-like-to-join-a-cell-to-the-fancybox-plugin/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>noppem on I would like to join a cell to the fancybox plugin...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/i-would-like-to-join-a-cell-to-the-fancybox-plugin#p16559</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/i-would-like-to-join-a-cell-to-the-fancybox-plugin#p16559</guid>
        	        	<description><![CDATA[<p>I found the solution -:)</p>
<p>first of all for the delete fonfirmation box, instead of this:</p>
<p>gridComplete: function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(<strong>&#39;#confirmation&#39;</strong>).bind(&#39;click&#39;,function(){<br />&#160;&#160;  &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;alert(&#39;confirmation !&#39;);<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;}</p>
</p>
<p>I had to write it so:</p>
<p>loadComplete: function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("a[id=&#39;confirmation&#39;]").bind(&#39;click&#39;,function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return confirm(&#39;&#60;cfoutput&#62;#JSStringFormat(StLabels["LBL_JS_DELETE_CONFIRM"])#&#60;/cfoutput&#62;&#39;);<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;}</p>
</p>
<p>So, now for the fancybox, I have the way to link the id to the fancybox method -)</p>
<p>gridComplete: function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("a[id=&#39;userDetails&#39;]").fancybox({&#39;type&#39;:&#39;ajax&#39;});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</p>
<p>... and this is OK,</p>
<p>Tony, thank you for all, and btw for your grid -)</p>
<p>Michel</p>
]]></description>
        	        	<pubDate>Tue, 20 Apr 2010 14:24:04 +0300</pubDate>
        </item>
        <item>
        	<title>noppem on I would like to join a cell to the fancybox plugin...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/i-would-like-to-join-a-cell-to-the-fancybox-plugin#p16555</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/i-would-like-to-join-a-cell-to-the-fancybox-plugin#p16555</guid>
        	        	<description><![CDATA[<p>Hi tony, thank you for your answer. unfortunately I have no results...</p>
<p>i tried to make it in another way to test the this Id:</p>
<p>for example i make a formatter:</p>
<p>function deleteFmt(cellValue, options, rowObject){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var encoded = encodeURIComponent(rowObject[4]);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var link = &#39;&#60;a id=<strong>"confirmation"</strong> href="index.cfm?TargetUrl=A_ROL_D&#38;StrCode=&#39; +rowObject[1]+ &#39;&#38;StrModifiedOn=&#39; +encoded+ &#39;&#38;act=0"&#62;&#60;img border="0" src="../images/trash.png"/&#62;&#60;/a&#62;&#39;;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return link;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;};</p>
<p>then, to test the bind in the gridComplete I wrote this:</p>
<p>gridComplete: function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(<strong>&#39;#confirmation&#39;</strong>).bind(&#39;click&#39;,function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;alert(&#39;confirmation !&#39;);<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;}</p>
<p>If i click on the cell I cannot see any alert box. Is there something wrong in this code ?</p>
<p>Thanks,</p>
<p>Michel</p>
]]></description>
        	        	<pubDate>Tue, 20 Apr 2010 12:39:04 +0300</pubDate>
        </item>
        <item>
        	<title>tony on I would like to join a cell to the fancybox plugin...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/i-would-like-to-join-a-cell-to-the-fancybox-plugin#p16479</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/i-would-like-to-join-a-cell-to-the-fancybox-plugin#p16479</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Try to call</p>
<p>$(&#39;<strong>#userDetails</strong>&#39;).fancybox({&#39;type&#39;:&#39;ajax&#39;});</p>
<p>in gridComplete method.</p>
<p>You call it, but the content is not into the dom, you should either call it in gridComplete event or call this command after the grid is created and enclose it in setTimeout function.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 16 Apr 2010 18:55:28 +0300</pubDate>
        </item>
        <item>
        	<title>noppem on I would like to join a cell to the fancybox plugin...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/i-would-like-to-join-a-cell-to-the-fancybox-plugin#p16430</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/i-would-like-to-join-a-cell-to-the-fancybox-plugin#p16430</guid>
        	        	<description><![CDATA[<p>Hi everybody,</p>
<p>I have a jqgrid cell modified with a custom formatter:</p>
<p>function detailFmt(cellValue, options, cellObject){<br />&#160; var link = &#39;&#60;a <strong>id="userDetails"</strong> title="Details for user &#39; + cellValue + &#39;" href="index.cfm?TargetUrl=D_USR_D&#38;username=&#39; + cellValue&#160;&#160;&#160; + &#39;"&#62;&#60;img border="0" src="../images/info.png"/&#62;&#60;/a&#62;&#39;;<br />&#160; return link;<br />}</p>
<p>To get the details data in a popup screen, I try to use the fancybox plugin:</p>
<p><a href="http://fancybox.net/howto" rel="nofollow" target="_blank">http://fancybox.net/howto</a></p>
<p>The problem is that the fancybox method has to be linked to the id parameter of the "a" html tag: (should be like this...)</p>
<p>$(&#39;<strong>#userDetails</strong>&#39;).fancybox({&#39;type&#39;:&#39;ajax&#39;}); (does not work -)</p>
<p>If instead I write: $(&#39;#pager&#39;).fancybox({&#39;type&#39;:&#39;ajax&#39;}); I get the pager in the popup form (funny -)</p>
<p>How can I link the .fancybox method to the html id parameter of the &#39;a&#39; tag inside the clicked cell of the jqgrid ?</p>
<p>Thank you in advance for your help, and greetings from Belgium, <img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" /></p>
<p>Michel</p>
]]></description>
        	        	<pubDate>Thu, 15 Apr 2010 14:45:32 +0300</pubDate>
        </item>
</channel>
</rss>