<?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: Grid but no data</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/grid-but-no-data</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/grid-but-no-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>murray on Grid but no data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-but-no-data#p5956</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-but-no-data#p5956</guid>
        	        	<description><![CDATA[<p>Problem solved:</p>
<p>Despite the fact I am using PHP 5.1.6 it still seems to want JSON.php and therefore in getstaff.php needs</p>
<p>//since we want to use a JSON data we should include<br />//encoder and decoder for JSON notation<br />//If you use a php &#62;= 5 this file is not needed<br />include("../includes/jqgrid/JSON.php");</p></p>
]]></description>
        	        	<pubDate>Sun, 12 Apr 2009 00:14:19 +0300</pubDate>
        </item>
        <item>
        	<title>murray on Grid but no data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/grid-but-no-data#p5947</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/grid-but-no-data#p5947</guid>
        	        	<description><![CDATA[<p>Thank you for a tool that will be really useful when I become more familiar with it.</p>
<p>I think i have a pathing problem and would appreciate some assistance.</p>
<p>My file updtstaff.php contains:<br />jQuery(document).ready(function(){<br />jQuery("#list2").jqGrid({<br />&#160;&#160;&#160; // the url parameter tells from where to get the data from server<br />&#160;&#160;&#160; // adding ?nd=&#39;+new Date().getTime() prevent IE caching<br />&#160;&#160;&#160; url:&#39;getstaff.php?nd=&#39;+new Date().getTime(),</p>
<p>getstaff.php gets the relevant records.</p>
<p>If I structure my directories as follows, the grid works complete with data</p>
<p>/site<br />&#160;&#160; &#160;/admin<br />&#160;&#160; &#160;&#160;&#160; &#160;updtstaff.php<br />&#160;&#160; &#160;&#160;&#160; &#160;getstaff.php<br />&#160;&#160; &#160;&#160;&#160; &#160;dbconfig.php<br />&#160;&#160; &#160;&#160;&#160; &#160;jquery.jqGrid.js<br />&#160;&#160; &#160;&#160;&#160; &#160;/js<br />&#160;&#160; &#160;&#160;&#160; &#160;/images<br />&#160;&#160; &#160;&#160;&#160; &#160;/themes </p>
<p>If I structure them as follows, I get the grid but no data in it.</p>
<p>/site<br />&#160;&#160; &#160;/admin<br />&#160;&#160; &#160;&#160;&#160; &#160;updtstaff.php<br />&#160;&#160; &#160;&#160;&#160; &#160;getstaff.php<br />&#160;&#160; &#160;&#160;&#160; &#160;dbconfig.php<br />&#160;&#160; &#160;/includes<br />&#160;&#160; &#160;&#160;&#160; &#160;/jqgrid<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jquery.jqGrid.js<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;/js<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;/images<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;/themes </p>
<p>I suspect the problem to be with pathing pointing to getstaff.php as in <br />jQuery("#list2").jqGrid({<br />&#160;&#160;&#160; // the url parameter tells from where to get the data from server<br />&#160;&#160;&#160; // adding ?nd=&#39;+new Date().getTime() prevent IE caching<br />&#160;&#160;&#160; url:&#39;getstaff.php?nd=&#39;+new Date().getTime(),</p>
<p>but changing this to ../../admin/getstaff.php and other variations does not work.</p>
<p>Regards</p>
<p>Murray</p></p>
]]></description>
        	        	<pubDate>Fri, 10 Apr 2009 01:54:12 +0300</pubDate>
        </item>
</channel>
</rss>