<?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: Lightbox integration</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/lightbox-integration</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/lightbox-integration/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>markw65 on Lightbox integration</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/lightbox-integration#p12800</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/lightbox-integration#p12800</guid>
        	        	<description><![CDATA[<p>I think the problem is that lightbox scans the page when it initializes, and modifies any links with the "lightbox" class (presumably adding a click handler). But it doesnt dynamically alter links that are created later.</p>
</p>
<p>Im not familiar with lightbox, but I would guess that it has a way of modifying a dynamically created link. Presumably there is a method you can call on the link (or a handler you can add manually).</p>
</p>
<p>So you would need your own formatter, which calls the grid&#39;s link formatter, and then does whatever lightbox needs you to do.</p>
</p>
<p>Mark</p>
]]></description>
        	        	<pubDate>Mon, 07 Dec 2009 18:15:15 +0200</pubDate>
        </item>
        <item>
        	<title>bryanh on Lightbox integration</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/lightbox-integration#p12794</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/lightbox-integration#p12794</guid>
        	        	<description><![CDATA[<p>Hi, I had not been using the formatter, I simply formed the href in the xml response from my php script, here is a snippet of the Firebug response:</p>
<p><pre><code>&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;&#60;rows&#62;&#60;page&#62;1&#60;/page&#62;&#60;total&#62;4&#60;/total&#62;&#60;records&#62;119&#60;/records&#62;&#60;row</code><code> id=&#39;10433&#39;&#62;&#60;cell&#62;10433&#60;/cell&#62;&#60;cell&#62;&#60;![CDATA[&#60;a href ="../images/bottoms028.jpg" title="bottoms028.jpg"</code><code> class = "lightbox" &#62;bottoms028.jpg&#60;/a&#62;]]&#62;&#60;/cell&#62;&#60;cell&#62;174.115.140.241&#60;/cell&#62;&#60;cell&#62;2009-12-07 00:37:12</code><code>&#60;/cell&#62;&#60;cell&#62;&#60;![CDATA[Canada]]&#62;&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;/row&#62;.....&#60;/rows&#62;</code></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;"><br /></span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;">I need the link to have a class attribute of "lightbox" and title attribute (which become the image caption in lightbox.</span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;"><br /></span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;">Outside of a jqgrid, this href will properly trigger lightbox (cut from the above xml and tested by itself):</span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;"><br /></span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;"><pre><code>&#60;a href ="../images/bottoms028.jpg" title="bottoms028.jpg"</code><code> class = "lightbox" &#62;bottoms028.jpg&#60;/a&#62;</code></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;"><br /></span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;">So, using the same link, it works when not in a grid, and does not work inside  a grid(it opens the image in the browser window). I know the lightbox.js is included properly (all my pages have a common php include for the html head).</span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;">I have tried different load orders for the js with no effect.</span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;"><br /></span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;">If I need to use the formatter or custom formatter, looking at docs I am not clear on how I would send a class and title attribute .</span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;"><br /></span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;">Thanks again for any help.</span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;"><br /></span></pre>
<pre><span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif;"><br /></span></pre>
</p>
<p></span></p>
]]></description>
        	        	<pubDate>Mon, 07 Dec 2009 16:12:11 +0200</pubDate>
        </item>
        <item>
        	<title>Rumen[Trirand] on Lightbox integration</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/lightbox-integration#p12786</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/lightbox-integration#p12786</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Are you using custom or link formatter for displaying the link for the image inside the grid? Can you please use FireBug or some other debugging tool to make sure it is indeed in the correct format?</p>
<p>You can use the examples we provide</p>
<p><a href="http://trirand.com/jqgrid/jqgrid.html" target="_blank">http://trirand.com/jqgrid/jqgrid.html</a></p>
</p>
<p>and especially the "New in 3.4 -&#62; Custom Formatter" example to see how you can provide custom format for a grid cell.</p>
]]></description>
        	        	<pubDate>Mon, 07 Dec 2009 09:48:10 +0200</pubDate>
        </item>
        <item>
        	<title>bryanh on Lightbox integration</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/lightbox-integration#p12782</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/lightbox-integration#p12782</guid>
        	        	<description><![CDATA[<p>I am new to jqgrid, thank you for the great work. I am building an application that retrieves a list of image files, and it would be a great ui enhancement if the user could simply click the image link in my grid and have it open in lightbox.</p>
<p>I have lightbox working on my site outside of jqgrid and it works correctly, the only requirement with the version of lightbox I am using is to add the class="lightbox" to the href.</p>
<p>My grid is retreiving the links in the correct format with the lightbox class attribute, but clicking it only opens the image in a new browser window, bypassing lightbox.</p>
<p>I would be gratefull for any help on this. I&#39;m not especially strong in javascript, so if you could keep it simple <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
</p>
<p>Thanks again.</p>
]]></description>
        	        	<pubDate>Sun, 06 Dec 2009 17:51:32 +0200</pubDate>
        </item>
</channel>
</rss>