<?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: cell value as hyperlink</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/cell-value-as-hyperlink</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/cell-value-as-hyperlink/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>DaElectric on cell value as hyperlink</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-value-as-hyperlink#p17188</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-value-as-hyperlink#p17188</guid>
        	        	<description><![CDATA[<p>Dont mean to sound like an asshole but did you search the wiki? /jqgridwiki/doku.php?id=wiki:custom_formatter</p>
<p>When you define your collumn you will need to defin the formater for it.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8816' value='Select Code' data-codeid='sfcode8816' /></p>
<div class='sfcode' id='sfcode8816'>jQuery(&#34;#grid_id&#34;).jqGrid({<br />&#8230;<br />&#160;&#160; colModel : [<br />&#160;&#160; ...<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;myname&#39;, ... formatter:&#39;MyLinkFormater&#39;, ...},<br />&#160;&#160; ...<br />&#160;&#160; ],<br />&#8230;<br />});</div>
<p>&#160;Then you need to define a function called MyLinkFormater.&#160; It will need to accept 3 parameters</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6844' value='Select Code' data-codeid='sfcode6844' /></p>
<div class='sfcode' id='sfcode6844'>
<p>&#160;function&#160;MyLinkFormater (cellvalue, options, rowObject)<br />{<br />&#160;<br />&#160;&#160; return cellvalue.replace(&#34;<a href="http://localhost/~aznanhjyusof/&#038;quot" rel="nofollow" target="_blank">http://localhost/~aznanhjyusof/&#038;quot</a>;, &#34;&#34;);<br />}</p>
</div>
]]></description>
        	        	<pubDate>Sat, 15 May 2010 22:25:51 +0300</pubDate>
        </item>
        <item>
        	<title>aznan on cell value as hyperlink</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/cell-value-as-hyperlink#p17165</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/cell-value-as-hyperlink#p17165</guid>
        	        	<description><![CDATA[<p>hello&#8230; there.. &#160;my problm is i cant create a hyperlink inside the cell.. I try few samples in the forum..&#160;</p>
<p>predefined formatter, or adding href tag to the data but the output is the same..&#160;</p>
<p>for example the value of my cell is <a onclick="javascript:pageTracker._trackPageview(&#39;/outbound/article/http://www.hotmail.com.&#39;);" rel="nofollow" href="http://www.hotmail.com." target="_blank"></a><a href="http://www.hotmail.com" rel="nofollow" target="_blank">http://www.hotmail.com</a>.. but my link will return</p>
<p>"http://localhost/~aznanhjyusof/www.hotmail.com"</p>
<p>how can i set it so it will not include : "http://localhost/~aznanhjyusof/"&#160;</p>
<p>I keep seeing people telling use custom formatter.. but unluckily.. i dunno hhow... i did look at some e.g. but I dunno how to set custom formatter for myself..</p>
<p>can anyone just show some basic code here on how to do thiss... a hyperlink to a website or document or pdf....</p>
<p>help.. I been trying to solve it for days&#8230;</p>
]]></description>
        	        	<pubDate>Fri, 14 May 2010 12:01:36 +0300</pubDate>
        </item>
</channel>
</rss>