<?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: missing ) in parenthetical </title>
	<link>http://www.trirand.com/blog/?page_id=393/help/missing-in-parenthetical</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/missing-in-parenthetical/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>phicarre on missing ) in parenthetical </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/missing-in-parenthetical#p11714</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/missing-in-parenthetical#p11714</guid>
        	        	<description><![CDATA[<p>Thank you.</p>
<p>Forget my question: there are too many errors <img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /></p>
<p>Now I corrected them.</p>
]]></description>
        	        	<pubDate>Tue, 10 Nov 2009 07:58:50 +0200</pubDate>
        </item>
        <item>
        	<title>Romyn on missing ) in parenthetical </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/missing-in-parenthetical#p11708</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/missing-in-parenthetical#p11708</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>Lose the , at the end of the caption line.</p>
</p>
<p>caption:&#8221;Mon premier exemple&#8221;,</p>
</p>
<p>should be</p>
</p>
<p>caption:&#8221;Mon premier exemple&#8221;</p>
</p>
<p>That&#39;s the obvious one - don&#39;t know if there are more.</p>
</p>
<p>Regards</p>
<p>Romyn</p>
]]></description>
        	        	<pubDate>Tue, 10 Nov 2009 04:29:19 +0200</pubDate>
        </item>
        <item>
        	<title>phicarre on missing ) in parenthetical </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/missing-in-parenthetical#p11707</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/missing-in-parenthetical#p11707</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I copied from the wiki this example and adapted it.</p>
<p>- french language</p>
<p>- other mysql database</p>
<p>What could be wrong ?</p>
<p>&#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 xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"&#62;<br />&#60;head&#62;</p>
<p>&#60;meta http-equiv="content-type" content="text/html; charset=ISO-8859-15" /&#62;<br />&#60;title&#62;My First Grid&#60;/title&#62;<br />&#60;script src="jGrid/js/jquery-1.3.2.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="jquery/jquery-ui-1.7.1.custom.min.js"&#62;&#60;/script&#62;&#160;&#160; <br />&#60;link rel="Stylesheet"&#160; href="jquery/theme/ui.all.css" type="text/css" /&#62;<br />&#60;link rel="stylesheet" type="text/css" media="screen" href="jGrid/css/ui.jqgrid.css" /&#62;</p>
<p>&#60;script src="jGrid/js/i18n/grid.locale-fr.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="jGrid/js/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="jGrid/src/grid.loader.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript"&#62;<br />&#160;jQuery(document).ready(function ()<br />&#160;{<br />&#160; jQuery("#list1").jqGrid({<br />&#160;&#160;&#160;&#160; url:&#39;testjgrid2.php&#39;,<br />&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160; colNames:[&#39;Nom&#39;,&#39;Pr&#233;nom&#39;, &#39;Sexe&#39;],<br />&#160;&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160; {name:&#39;id_resident&#39;,index:&#39;id_resident&#39;, width:75},<br />&#160;&#160;&#160;&#160; {name:&#39;nom&#39;,index:&#39;nom&#39;, width:100},<br />&#160;&#160;&#160;&#160; {name:&#39;sexe&#39;,index:&#39;sexe&#39;, width:80, align:"right"}, <br />&#160;&#160;&#160;&#160; ], <br />&#160;&#160;&#160;&#160; rowNum:10, <br />&#160;&#160;&#160;&#160; autowidth: true, <br />&#160;&#160;&#160;&#160; rowList:[10,20,30], <br />&#160;&#160;&#160;&#160; pager: jQuery(&#39;#pager1&#39;), <br />&#160;&#160;&#160;&#160; sortname: &#39;id_resident&#39;, <br />&#160;&#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160;&#160; sortorder: "desc", <br />&#160;&#160;&#160;&#160; caption:"Mon premier exemple",<br />&#160;&#160;&#160;&#160; <br />&#160; }).navGrid(&#39;#pager1&#39;,{edit:false,add:false,del:false});<br />&#160;})<br />&#60;/script&#62; <br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;table id="list1"&#62;&#60;/table&#62;<br />&#60;div id="pager1" class="scroll" style="text-align:center;"&#62;&#60;/div&#62; <br />&#60;/body&#62;<br />&#60;/html&#62;</p>
<p>My php script:</p>
<p>&#60;?php<br />&#160;&#160; require_once(&#39;includes/common.php&#39;);<br />&#160;&#160; require_once("debug.php");&#160; <br />&#160;&#160; debug_application("testjgrid2");<br />&#160;&#160; $page = $_GET[&#39;page&#39;]; // get the requested page<br />&#160;&#160; $limit = $_GET[&#39;rows&#39;]; // get how many rows we want to have into the grid <br />&#160;&#160; $sidx = $_GET[&#39;sidx&#39;]; // get index row - i.e. user click to sort <br />&#160;&#160; $sord = $_GET[&#39;sord&#39;]; // get the direction <br />&#160;&#160; if(!$sidx) $sidx =1; // connect to the database <br />&#160;&#160; $connection = mysql_connect($serveur,$user,$password);<br />&#160;&#160; $db = mysql_select_db($bdd, $connection); <br />&#160;&#160; $result = mysql_query("SELECT COUNT(*) AS count FROM residents",$connection); <br />&#160;&#160; $row = mysql_fetch_array($result); <br />&#160;&#160; $count = $row[&#39;count&#39;]; <br />&#160;&#160; print $count;<br />&#160;&#160; if( $count &#62; 0 &#38;&#38; $limit &#62; 0) { <br />&#160;&#160;&#160; $total_pages = ceil($count/$limit); <br />&#160;&#160; }<br />&#160;&#160; else { <br />&#160;&#160;&#160; $total_pages = 0; <br />&#160;&#160; } <br />&#160;<br />&#160;&#160; if ($page &#62; $total_pages) $page=$total_pages; <br />&#160;&#160; <br />&#160;&#160; $start = $limit*$page - $limit; // do not put $limit*($page - 1) <br />&#160;&#160; if ($start&#60;0) $start = 0; <br />&#160;&#160; <br />&#160;&#160; $SQL = "SELECT * FROM residents WHERE (ID_EMS =&#39;1&#39;) ORDER BY Nom LIMIT $start , $limit"; <br />&#160;&#160; <br />&#160;&#160; $result = mysql_query( $SQL,$connection ) or die("Couldn?t execute query.".mysql_error()); <br />&#160;&#160; $responce-&#62;page = $page; <br />&#160;&#160; $responce-&#62;total = $total_pages; <br />&#160;&#160; $responce-&#62;records = $count; <br />&#160;&#160; $i=0; <br />&#160;&#160; while($row = mysql_fetch_array($result)) { <br />&#160;&#160;&#160;&#160;&#160;&#160; $responce-&#62;rows[$i]=$responce-&#62;rows[$i][&#39;cell&#39;]=array($row[&#39;id_resident&#39;],$row[&#39;nom&#39;],$row[&#39;prenom&#39;],$row[&#39;sexe&#39;]); <br />&#160;&#160;&#160;&#160;&#160;&#160; $i++;<br />&#160;&#160; } <br />&#160;&#160; debug_application($responce); <br />&#160;&#160; echo json_encode($responce); <br />?&#62;</p>
<p>I have this error in firebug:</p>
<p>missing ) in parenthetical&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; grid.base.js line 59</p>
]]></description>
        	        	<pubDate>Tue, 10 Nov 2009 04:16:14 +0200</pubDate>
        </item>
</channel>
</rss>