<?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: ERROR showing data</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/error-showing-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/error-showing-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Lonewolf217 on ERROR showing data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/error-showing-data#p30140</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/error-showing-data#p30140</guid>
        	        	<description><![CDATA[<p>The sample page you have doesn&#39;t work. &#160;i dont know if it has been modified since your original post, but if you look at the console in your browser you see errors like this which are causing the javascript to exit prematurely and not display anything.&#160;</p>
<div class="console-message console-error-level">Failed to load resource: the server responded with a status of 404 (Not Found) <a class="console-message-url " title="http://importadores.scc.com.pt/v1/excite-bike/jquery-ui-custom.css" href="http://importadores.scc.com.pt/v1/excite-bike/jquery-ui-custom.css" target="_blank"></a><a href="http://importadores.scc.com.pt" rel="nofollow" target="_blank">http://importadores.scc.com.pt</a>.....custom.css</div>
<div class="console-message console-error-level">Uncaught TypeError: Cannot read property &#39;safari&#39; of undefined <a class="console-message-url " title="http://importadores.scc.com.pt/v1/js/src/grid.loader.js:29" href="http://importadores.scc.com.pt/v1/js/src/grid.loader.js" target="_blank">grid.loader.js:29</a></div>
<div class="console-message console-error-level">Uncaught SyntaxError: Unexpected token {</div>
]]></description>
        	        	<pubDate>Fri, 24 Jan 2014 20:42:13 +0200</pubDate>
        </item>
        <item>
        	<title>overbrain on ERROR showing data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/error-showing-data#p30113</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/error-showing-data#p30113</guid>
        	        	<description><![CDATA[<p>hello everyone <br />I am using jqgrid for the first time I&#39;m doing some tests but I came across an error that still could not solve, the data in Table I show off the grid can help me? <br />I&#39;ll put here the code of php and html.</p>
<p><a href="http://importadores.scc.com.pt/v1/myjqgridphp.php" target="_blank">problem here</a></p>
<p>thank you <br />and sorry for bad english</p>
<blockquote>
<p>&#60;?php<br />require_once &#39;jq-config.php&#39;;<br />// include the jqGrid Class<br />require_once ABSPATH."php/jqGrid.php";<br />// include the driver class<br />require_once ABSPATH."php/jqGridPdo.php";<br />// Connection to the server<br />$conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD);<br />// MySQL specific command for the charset<br />// Tell the db that we use utf-8<br />$conn-&#62;query("SET NAMES utf8&#8243;);<br />// Create the jqGrid instance<br />$grid = new jqGridRender($conn);<br />// Data from this SQL is 1252 encoded, so we need to tell the grid<br />// Set the SQL Data source<br />$grid-&#62;SelectCommand =&#39;SELECT id, nome, nif, contacto, transitario, user, arc, metodo, copia, motivo, changed_on, envia FROM importador&#39;;<br />// set the ouput format to XML<br />$grid-&#62;dataType = &#39;json&#39;;<br />//$Model = array(<br />//&#160;&#160;&#160; array("name"=&#62;"id","width"=&#62;40,"editable"=&#62;false),<br />//&#160;&#160;&#160; array("name"=&#62;"nome","editable"=&#62;true)<br />//&#160;&#160;&#160; );</p>
<p>// Let the grid create the model<br />$grid-&#62;setColModel();<br />//$grid-&#62;setColModel($Model);</p>
<p>//$mylabels = array(<br />//"id"=&#62;"Id",&#160; //"nome"=&#62;"Nome",<br />//"morada"=&#62;"Morada",<br />//"nif"=&#62;"Nif",<br />//"contacto"=&#62;"Contacto",<br />//);</p>
<p>// set labels in the header<br />$grid-&#62;setColProperty("id", array("label"=&#62;"ID") );<br />$grid-&#62;setColProperty("nome", array("label"=&#62;"NOME"));<br />$grid-&#62;setColProperty("morada", array("label"=&#62;"MORADA"));<br />$grid-&#62;setColProperty("nif", array("label"=&#62;"NIF"));<br />$grid-&#62;setColProperty("contacto", array("label"=&#62;"CONTACTO"));<br />$grid-&#62;setColProperty("transitario", array("label"=&#62;"TRANSITARIO"));<br />$grid-&#62;setColProperty("user", array("label"=&#62;"USERNAME"));<br />$grid-&#62;setColProperty("arc", array("label"=&#62;"ARC"));<br />$grid-&#62;setColProperty("metodo", array("label"=&#62;"METODO"));<br />$grid-&#62;setColProperty("copia", array("label"=&#62;"ANEXOS"));<br />$grid-&#62;setColProperty("motivo", array("label"=&#62;"MOTIVO"));<br />$grid-&#62;setColProperty("changed_on", array("label"=&#62;"D/CRIACAO"));<br />$grid-&#62;setColProperty("envia", array("label"=&#62;"STATUS"));</p>
<p>// We can hide some columns<br />//$grid-&#62;setColProperty("changed_on", array("hidden"=&#62;true));<br />//$grid-&#62;setColProperty("motivo", array("hidden"=&#62;true));</p>
<p>// Set the url from where we obtain the data<br />$grid-&#62;setUrl(&#39;myjqgridphp.php&#39;);<br />// Set some grid options<br />$grid-&#62;setGridOptions(array("rowNum"=&#62;20,"rowList"=&#62;array(20,40,80),"sortname"=&#62;"id","height"=&#62;150));<br />// Enable toolbar searching<br />$grid-&#62;toolbarfilter = true;<br />$grid-&#62;setFilterOptions(array("stringResult"=&#62;true));<br />// Enjoy<br />$grid-&#62;renderGrid(&#39;#grid&#39;,&#39;#pager&#39;,true, null, null, true,true);<br />$conn = null;<br />?&#62;</p>
<p>&#160; </p>
</blockquote>
<blockquote>
<p>&#60;?php <br />//require_once &#39;tabs.php&#39;;<br />ob_start();<br />?&#62;<br />&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;<br />&#60;html&#62;<br />&#160; &#60;head&#62;<br />&#160;&#160;&#160; &#60;title&#62;jqGrid PHP Demo&#60;/title&#62;<br />&#160;&#160;&#160; &#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8&#8243; /&#62;&#60;head&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="excite-bike/jquery-ui.custom.css"/&#62;<br />&#160;&#160; &#160;&#60;link rel="stylesheet" type="text/css" media="screen" href="themes/ui.jqgrid.css" /&#62;<br />&#160;&#160; &#160;&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" media="screen" href="themes/ui.multiselect.css" /&#62;</p>
<p>&#160;&#160; &#160;<br />&#160;&#160; &#160;&#60;script src="js/jquery.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script src="js/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script type="text/javascript"&#62;<br />&#160;&#160; &#160;$.jgrid.no_legacy_api = true;<br />&#160;&#160; &#160;$.jgrid.useJSON = true;<br />&#160;&#160; &#160;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script src="js/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script src="themes/jquery-ui.custom.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script src="js/src/grid.loader.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160; &#60;/head&#62;<br />&#160; &#60;body&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;div&#62;<br />&#160;&#160; &#160;&#160;&#160; &#60;?php include("myfirstgrid.php");?&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;br/&#62;<br />&#160; <br />&#160;&#160; &#60;/body&#62;<br />&#60;/html&#62;</p>
</blockquote>
]]></description>
        	        	<pubDate>Tue, 21 Jan 2014 16:16:29 +0200</pubDate>
        </item>
</channel>
</rss>