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:
|
1 |
14119<row</code><code> id='10433'>10433<![CDATA[<a href ="../images/bottoms028.jpg" title="bottoms028.jpg"</code><code> class = "lightbox" >bottoms028.jpg]]>174.115.140.2412009-12-07 00:37:12</code><code>..... |
|
1 |
<span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif"><br /></span> |
|
1 |
<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> |
|
1 |
<span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif"><br /></span> |
|
1 |
<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> |
|
1 |
<span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif"><br /></span> |
|
1 |
<span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif"><pre><code><a href ="../images/bottoms028.jpg" title="bottoms028.jpg"</code><code> class = "lightbox" >bottoms028.jpg |
|
1 |
<span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif"><br /></span> |
|
1 |
<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> |
|
1 |
<span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif">I have tried different load orders for the js with no effect.</span> |
|
1 |
<span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif"><br /></span> |
|
1 |
<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> |
|
1 |
<span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif"><br /></span> |
|
1 |
<span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif">Thanks again for any help.</span> |
|
1 |
<span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif"><br /></span> |
|
1 |
<span style="font-family: monospace, Helvetica, Arial, Verdana, sans-serif"><br /></span> |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top