<?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: loading xml data from remote php script not working</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/loading-xml-data-from-remote-php-script-not-working</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/loading-xml-data-from-remote-php-script-not-working/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on loading xml data from remote php script not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/loading-xml-data-from-remote-php-script-not-working#p13663</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/loading-xml-data-from-remote-php-script-not-working#p13663</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could yo please post your jqGrid configuration or provide a link to the problem.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 07 Jan 2010 20:54:13 +0200</pubDate>
        </item>
        <item>
        	<title>dhruvg on loading xml data from remote php script not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/loading-xml-data-from-remote-php-script-not-working#p13627</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/loading-xml-data-from-remote-php-script-not-working#p13627</guid>
        	        	<description><![CDATA[<p>I went a step further and copy/pasted the code from the jqgrid demo for loading xml data. I changed the url property from &#39;server.php?q=1&#39; to&#160;<a href="http://www.trirand.com/blog/jqgrid/server.php?q=1" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/jq" rel="nofollow">http://www.trirand.com/blog/jq</a>.....er.php?q=1</a> and if i understand this correctly, jqgrid will use teh other properties provides and create a url like the following:&#160;<a href="http://www.trirand.com/blog/jqgrid/server.php?q=1&#038;page=1&#038;rows=10&#038;sidx=id&#038;sord=desc" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/jq" rel="nofollow">http://www.trirand.com/blog/jq</a>.....;sord=desc</a></p>
<p>This url outputs the xml data which is populated in the grid in the demo at least. THe funny thing is that I do the exact same thing as the demo and call this url for the xml data. Even now, only the table, column names, and css/styling is displayed. The xml data from the above url is NOT populated into the grid.</p>
<p>This makes me think that hte issue is not with the server side code but the client-side code. However, I have no clue where to begin since even the demo javascript code and xml output is not working for me!</p>
<p>Any help greatly appreciated.</p>
</p>
<p>Thanks in advance,</p>
]]></description>
        	        	<pubDate>Thu, 07 Jan 2010 01:48:57 +0200</pubDate>
        </item>
        <item>
        	<title>dhruvg on loading xml data from remote php script not working</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/loading-xml-data-from-remote-php-script-not-working#p13625</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/loading-xml-data-from-remote-php-script-not-working#p13625</guid>
        	        	<description><![CDATA[<p>Hi, I am new to jqGrid and am trying to get a simple grid which loads xml data from a php script to work. I have tried to model my code off the demos as close as possible, but for some reason, the actual data is not being displayed. Only the table, css, and the column names are being displayed..</p>
<p>Here is my XML output:</p>
</p>
<pre id="line1"><span class="pi">&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;</span>
&#60;<span class="start-tag">rows</span>&#62;</pre>
<pre id="line1"><span style="white-space:pre">	</span>&#60;<span class="start-tag">page</span>&#62;1&#60;/<span class="end-tag">page</span>&#62;</pre>
<pre id="line1"><span style="white-space:pre">	</span>&#60;<span class="start-tag">total</span>&#62;1&#60;/<span class="end-tag">total</span>&#62;</pre>
<pre id="line1"><span style="white-space:pre">	</span>&#60;<span class="start-tag">records</span>&#62;4&#60;/<span class="end-tag">records</span>&#62;</pre>
<pre id="line1"><span style="white-space:pre">	</span>&#60;<span class="start-tag">row</span><span class="attribute-name"> id</span>=<span class="attribute-value">&#39;1&#39;</span>&#62;</pre>
<pre id="line1"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[1]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</pre>
<pre id="line1"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[test]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</pre>
<pre id="line1"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[19]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</pre>
<pre id="line1"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[test]]&#62;&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[CA]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[email]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[1]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">	</span>&#60;/<span class="end-tag">row</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">	</span>&#60;<span class="start-tag">row</span><span class="attribute-name"> id</span>=<span class="attribute-value">&#39;2&#39;</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[2]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[bob]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[22]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[test&#39;]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[MA]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[phone]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[2]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">	</span>&#60;/<span class="end-tag">row</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">	</span>&#60;<span class="start-tag">row</span><span class="attribute-name"> id</span>=<span class="attribute-value">&#39;3&#39;</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[3]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[Matt]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[20]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[test]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[TX]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[bloop]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[3]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">	</span>&#60;/<span class="end-tag">row</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">	</span>&#60;<span class="start-tag">row</span><span class="attribute-name"> id</span>=<span class="attribute-value">&#39;4&#39;</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[4]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[blah]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[19]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[poker]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[CA]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></pre>
<pre id="line1"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[phone]]&#62;&#60;/<span class="end-tag">cell</span>&#62;</span></span></pre>
<pre id="line1"><span class="cdata"><span class="cdata"><span style="white-space:pre">		</span>&#60;<span class="start-tag">cell</span>&#62;<span class="cdata">&#60;![CDATA[4]]&#62;</span>&#60;/<span class="end-tag">cell</span>&#62;</span></span></pre>
<pre id="line1"><span class="cdata"><span class="cdata"><span style="white-space:pre">	</span>&#60;/<span class="end-tag">row</span>&#62;</span></span></pre>
<pre id="line1"><span class="cdata"><span class="cdata">&#60;/<span class="end-tag">rows</span>&#62;</span></span></pre>
<pre id="line1"><span class="cdata"><span class="cdata"><br /></span></span></pre>
<pre id="line1">Here is the javascript code that makes the grid:</pre>
<pre id="line1">  	</pre>
<pre id="line1"><span style="white-space:pre">	</span>// construct the grid
	$("#datagrid").jqGrid({
	   	url: data_url,
		datatype: "xml",
	   	colNames: col_name_array,
	   	colModel: col_model,
	   	rowNum: 10,
	   	autowidth: true,
	   	rowList:[10,20,30],
	   	pager: $(&#39;#pager&#39;),
	   	sortname: &#39;bytefalcon_id&#39;,
	    viewrecords: true,
	    sortorder: "asc",
	    caption: datagrid_name,
	    mtype: &#39;GET&#39;
	}).navGrid(&#39;#pager&#39;,{edit: false, add: false, del: false});</pre>
<pre id="line1">I have included the following scripts in the head:</pre>
<pre id="line1">  &#60;script type="text/javascript" src="/static/js/jquery-1.3.2.min.js"&#62;&#60;/script&#62;</pre>
<pre id="line1">  &#60;link rel="stylesheet" type="text/css" media="screen"&#160;</pre>
<pre id="line1"><span style="white-space: pre;">	</span>href="/static/css/redmond/jquery-ui-1.7.2.custom.css"&#62;&#60;/link&#62;
  &#60;link rel="stylesheet" type="text/css" media="screen" href="/static/css/ui.jqgrid.css"&#62;&#60;/link&#62;
  &#60;script src="/static/js/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;
  &#60;script src="/static/js/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;
  &#60;script src="/static/js/src/jqDnR.js" type="text/javascript"&#62;&#60;/script&#62;</pre>
<pre id="line1">I have verified that the col_name_array, col_model, and datagrid_name all have correct values. Plus, this is&#160;</pre>
<pre id="line1">the only way the grid can be shown anyways and the grid is being shown properly.&#160;The problem is that the&#160;</pre>
<pre id="line1">xml data is not being populated in the grid. The data_url points to the script which correctly outputs the&#160;</pre>
<pre id="line1">xml data above. Again,</pre>
<pre id="line1"></pre>
<pre id="line1">I have verified this by logging the GET message and the output..</pre>
<pre id="line1">Anyone have any ideas what is missing? Why isn&#39;t this working?</pre>
<pre id="line1">Thanks in advance.</pre></p>
]]></description>
        	        	<pubDate>Thu, 07 Jan 2010 01:18:50 +0200</pubDate>
        </item>
</channel>
</rss>