<?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: problem with custom formatter</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-custom-formatter</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/bugs/problem-with-custom-formatter/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>orish on problem with custom formatter</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-custom-formatter#p24697</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-custom-formatter#p24697</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I am using the custom formatter to create a field with a link and an onclick event. I do it the following way:</p>
</p>
<p>function my_custom_formatter(cellvalue,.....)</p>
<p>{</p>
<p>return &#39;&#60;a onclick="alert(\&#39;&#39; + cellvalue + &#39;\&#39;);"&#62;&#39; + cellvalue + &#39;&#60;/a&#62;&#39;</p>
<p>}</p>
<p>The problem is that when restoreRow is called the text in the field also includes the javascript code. When I replace the cellvalue variable with normal text everything works fine, but I need this variable inside the onclick attribute.</p>
</p>
<p>&#160; &#160; &#160;Thanks,</p>
<p>&#160; &#160; &#160;Ori.</p>
]]></description>
        	        	<pubDate>Wed, 21 Sep 2011 02:55:22 +0300</pubDate>
        </item>
</channel>
</rss>