<?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 setGridParam</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-setgridparam</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/problem-with-setgridparam/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Ilyich on Problem with setGridParam</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-setgridparam#p24894</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-setgridparam#p24894</guid>
        	        	<description><![CDATA[<p>Oh, sorry my&#160;silliness. The problem was on variable "str". The right way to identify it is:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3105' value='Select Code' data-codeid='sfcode3105' /></p>
<div class='sfcode' id='sfcode3105'>var str = {&#39;url&#39;:&#39;someurl.php&#39;};&#160;</div>
]]></description>
        	        	<pubDate>Thu, 13 Oct 2011 20:28:38 +0300</pubDate>
        </item>
        <item>
        	<title>Ilyich on Problem with setGridParam</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-setgridparam#p24893</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-setgridparam#p24893</guid>
        	        	<description><![CDATA[<p>Greetings.</p>
<p>I have a strange problem with setGridParam method. I&#39;m trying to set new url for grid, so i&#39;m doing something like that:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit155' value='Select Code' data-codeid='sfcode155' /></p>
<div class='sfcode' id='sfcode155'>&#60;script type=&#34;text/javascript&#34;&#62;<br />function upd()<br />{<br />var str = &#34;url:someurl.php&#34;;<br />jQuery(&#39;#tablename&#39;).setGridParam(str);<br />alert(str);<br />var url = jQuery(&#39;#tablename&#39;).getGridParam(&#34;url&#34;);<br />alert(url);<br />jQuery(&#39;#tablename&#39;).trigger(&#39;reloadGrid&#39;);<br />&#60;/script&#62;</div>
<p> And then i&#39;m calling this function. And i got nothing - getGridParam shows the old URL.</p>
<p>I&#39;ve tried to debug that and i&#39;ve found that error comes at  line â„–2471 of jquery.jqGrid.src.js -</p>
<p><input type='button' class='sfcodeselect' name='sfselectit219' value='Select Code' data-codeid='sfcode219' /></p>
<div class='sfcode' id='sfcode219'>setGridParam : function (newParams){<br />return this.each(function(){<br />if (this.grid &#38;&#38; typeof(newParams) === &#39;object&#39;) {$.extend(true,this.p,newParams);}<br />});<br />},</div>
<p>i made a watching of "typeof(newParams)" and found that it&#39;s not "object" but "string".</p>
<p>So, what&#39;s my mistake? i&#39;ve tried to put quotes to variable "str" (like var str = "\url":"someurl.php""; ) but it gives nothing</p>
<p>I will be grateful for any help:)</p>
<p>PS Sorry for my bad English, feel free  to correct it.</p>
]]></description>
        	        	<pubDate>Thu, 13 Oct 2011 18:36:45 +0300</pubDate>
        </item>
</channel>
</rss>