<?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: jsonp problem - cross domain call</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jsonp-problem-cross-domain-call</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/jsonp-problem-cross-domain-call/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>satmovi on jsonp problem - cross domain call</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonp-problem-cross-domain-call#p16538</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonp-problem-cross-domain-call#p16538</guid>
        	        	<description><![CDATA[<p>Thanks Tony,</p>
<p>that really helps. I&#39;ll use the development version of jqgrid with this patch, hoping we&#39;ll have it fixed in the next relese.</p>
<p>Cheers</p>
<p>Ovidiu</p>
]]></description>
        	        	<pubDate>Mon, 19 Apr 2010 15:55:20 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jsonp problem - cross domain call</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonp-problem-cross-domain-call#p16532</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonp-problem-cross-domain-call#p16532</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks.</p>
<p>You can look here:</p>
<p><a href="http://www.trirand.com/blog/?page_id=393/help/jsonp-error/&#038;value=jsonp&#038;type=1&#038;include=1&#038;search=1&#038;ret=all" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/?p" rel="nofollow">http://www.trirand.com/blog/?p</a>.....38;ret=all</a></p>
</p>
<p>Also seems to be a problem with jQuery.</p>
<p>A quick look into jQuery code tell me that when a jsonp is used the method call his own complete callback ?!?? - really surprised.</p>
<p>We will try to support this with the next release.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 19 Apr 2010 14:05:26 +0300</pubDate>
        </item>
        <item>
        	<title>satmovi on jsonp problem - cross domain call</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonp-problem-cross-domain-call#p16510</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonp-problem-cross-domain-call#p16510</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m trying to make my grid work using the jsonp protocol(cross domain calls).</p>
<p>I set the datatype: &#39;jsonp&#39;. My problem is that the data is not loaded into the grid, I got an error: "o is undefined".</p>
<p>Using the development version of jqgrid I get "req is undefined" at grid.base.js:814 , this paragrapgh:</p>
<p>&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit248' value='Select Code' data-codeid='sfcode248' /></p>
<div class='sfcode' id='sfcode248'>&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; case &#34;json&#34;:<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;case &#34;jsonp&#34;:<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;case &#34;xml&#34;:<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;case &#34;script&#34;:<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$.ajax($.extend({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url:ts.p.url,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;type:ts.p.mtype,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;dataType: dt ,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;data: $.isFunction(ts.p.serializeGridData)? ts.p.serializeGridData.call(ts,ts.p.postData) : ts.p.postData,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;complete:function(req,st) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if(st==&#34;success&#34; &#124;&#124; (req.statusText == &#34;OK&#34; &#38;&#38; req.status == &#34;200&#34;)) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if(dt === &#34;xml&#34;) { addXmlData(req.responseXML,ts.grid.bDiv,rcnt,npage&#62;1,adjust); }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;else { addJSONData($.jgrid.parse(req.responseText),ts.grid.bDiv,rcnt,npage&#62;1,adjust); }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if(lc) { lc.call(ts,req); }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if (pvis) { ts.grid.populateVisible(); }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;req=null;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;endReq();<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},</div>
<p>Seems that req is undefined in complete() function. I can&#39;t feagure out why.</p>
<p>Checking with Firebug I can see that request is made, that data returned is ok.</p>
<p>My response looks like:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9916' value='Select Code' data-codeid='sfcode9916' /></p>
<div class='sfcode' id='sfcode9916'>
<p>jsonp1271660942600({&#34;page&#34;:&#34;1&#34;,&#34;callback&#34;:&#34;jsonp1271660942600&#34;,&#34;records&#34;:&#34;1&#34;,&#34;total&#34;:1,&#34;rows&#34;:[{&#34;id&#34;:&#34;1&#34;,&#34;cell&#34;:[&#34;1&#34;,&#34;Australia&#34;,&#34;Sydney Airport International Terminal Upgrade&#34;,&#34;Airports&#34;,&#34;342&#34;,&#34;na&#34;,&#34;2009-10&#34;,&#34;na\n&#34;,&#34;No&#34;]}],&#34;_uid&#34;:&#34;bqTrxVtkZJwvdC1gE66U144919Bz0XUJ&#34;});</p>
</div>
<p>Anyone using jggrid with jsonp?</p>
<p>Thanks</p>
<p>Ovidiu</p>
]]></description>
        	        	<pubDate>Mon, 19 Apr 2010 11:58:51 +0300</pubDate>
        </item>
</channel>
</rss>