<?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: valid json and onGridComplete</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/valid-json-and-ongridcomplete</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/valid-json-and-ongridcomplete/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on valid json and onGridComplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/valid-json-and-ongridcomplete#p13051</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/valid-json-and-ongridcomplete#p13051</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is well known problem The most PHP frameworks have own encode function when there is a need to encode javascript.</p>
<p>The best is to use one of these or write your own.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 15 Dec 2009 19:27:47 +0200</pubDate>
        </item>
        <item>
        	<title>billy on valid json and onGridComplete</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/valid-json-and-ongridcomplete#p13016</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/valid-json-and-ongridcomplete#p13016</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I am trying to use json_decode function with php along with the .jqGridExport({exptype:"jsonstring"}) function.</p>
</p>
<p>However json_decode fails because the json is not valid. this is because I am using gridComplete: function() {}</p>
<p>on the grid. jqGridExport exports the json like so:</p>
</p>
<p>"gridComplete": function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridComplete(); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
</p>
<p>but this fails to be valid json. The following is valid but the export function does not format the json this way</p>
</p>
<p>"gridComplete": "function () { gridComplete(); }",</p>
</p>
<p>Is there a way to use the gridComplete event with jqGridExport and still have it be valid json?</p>
</p>
<p>thanks</p>
]]></description>
        	        	<pubDate>Tue, 15 Dec 2009 05:10:53 +0200</pubDate>
        </item>
</channel>
</rss>