<?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: I'm having trouble getting started.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/im-having-trouble-getting-started</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/im-having-trouble-getting-started/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tedbyers on I'm having trouble getting started.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/im-having-trouble-getting-started#p25853</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/im-having-trouble-getting-started#p25853</guid>
        	        	<description><![CDATA[<p>I began with the example at /jqgridwiki/doku.php?id=wiki:first_grid, and made trivial changes to make it fit with what I need to do.&#160; Note, the accordion I am using in the same file is working perfectly.</p>
<p>It was easy enough to understand, but, for some reason, the HTML page is either not finding my perl script or not executing it.</p>
<p>I have verified that all the required css and js files are found.&#160;</p>
<p>NB: I am running Apache&#39;s httpd server, and the html file is in htdocs while my perl script is in cgi-bin.</p>
<p>Here is my HTML file:</p>
<blockquote>
<p>&#60;html&#62;<br />&#160; &#60;head&#62;&#60;title&#62;Test Grid&#60;/title&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;meta http-equiv="X-UA-Compatible" content="ie=9"&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;meta http-equiv="X-UA-Compatible" content="chrome=1"&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;link type="text/css" href="/css/themes/redmond/jquery-ui-1.8.16.custom.css" rel="Stylesheet" /&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" media="screen" href="/css/ui.jqgrid.css" /&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;script type="text/javascript" src="jquery-1.7.1.min.js"&#62;&#60;/script&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;script type="text/javascript" src="jquery-ui-1.8.16.custom.min.js"&#62;&#60;/script&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;script src="grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;script src="jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;script&#62;<br />&#160;$(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $( "#accordion" ).accordion({fillSpace: true});<br />&#160;});<br />&#160;$(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $( "#accordionResizer" ).resizable({<br />&#160;&#160;&#160;minHeight: 140,<br />&#160;&#160;&#160;resize: function() {<br />&#160;&#160;&#160;&#160;$( "#accordion" ).accordion( "resize" );<br />&#160;&#160;&#160;}<br />&#160;&#160;});<br />&#160;});<br />&#160;$(function(){<br />&#160;&#160; $("userlist").jqGrid({<br />&#160;&#160;&#160;&#160; <a href="/blog/&#39;/cgi-bin/users.pl&#39;" target="_blank">url:&#39;/cgi-bin/users.pl&#39;</a>,<br />&#160;&#160;&#160;&#160; datatype: &#39;xml&#39;,<br />&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160; colNames:[&#39;First name&#39;,&#39;Last name&#39;,&#39;Email address&#39;,&#39;User name&#39;,&#39;Password&#39;],<br />&#160;&#160;&#160;&#160; colModel :[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;fname&#39;, index:&#39;first_name&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;lname&#39;, index:&#39;last_name&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;email&#39;, index:&#39;email_address&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;username&#39;, index:&#39;username&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;password&#39;, index:&#39;password&#39;}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160; pager: &#39;#userpager&#39;,<br />&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160;&#160; sortname: &#39;lname&#39;,<br />&#160;&#160;&#160;&#160; sortorder: &#39;acs&#39;,<br />&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160; gridview: true,<br />&#160;&#160;&#160;&#160; caption: &#39;Users&#39;<br />&#160;&#160; });<br />&#160;});<br />&#160;&#160;&#160;&#160;&#160; &#60;/script&#62;<br />&#160; &#60;/head&#62;<br />&#160; &#60;body style="font-family:Lucida Grande, Lucida Sans, Arial, sans-serif; font-size: 1.1em;"&#62;<br />&#160; &#60;div id="accordion" style="height:100%;width:100%"&#62;<br />&#160;&#160;&#160; &#60;h3&#62;&#60;a href="#g1"&#62;Users&#60;/a&#62;&#60;/h3&#62;<br />&#160;&#160;&#160; &#60;div id="g1" style="height:100%;width:100%"&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;p&#62; a grid goes here&#60;/p&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;table id="userlist"&#62;&#60;tr&#62;&#60;td/&#62;&#60;/tr&#62;&#60;/table&#62; <br />&#160;&#160;&#160;&#160;&#160; &#60;div id="userpager"&#62;&#60;/div&#62; <br />&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#60;h3&#62;&#60;a href="#g2"&#62;Grid 2&#60;/a&#62;&#60;/h3&#62;<br />&#160;&#160;&#160; &#60;div id="g2" style="height:100%;width:100%"&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;p&#62; another grid goes here&#60;/p&#62;<br />&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#60;h3&#62;&#60;a href="#g3"&#62;Grid 3&#60;/a&#62;&#60;/h3&#62;<br />&#160;&#160;&#160; &#60;div id="g3" style="height:100%;width:100%"&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;p&#62; another grid goes here&#60;/p&#62;<br />&#160;&#160;&#160; &#60;/div&#62;<br />&#160; &#60;/div&#62;</p>
<p>&#160; &#60;/body&#62;<br />&#60;/html&#62;</p>
</blockquote>
<p>I know there is no attempt to run my perl script as I have it writing data, such as the SQL to get the data, and the XML it is to produce, to text files.&#160; I can post that perl script too, if it would help.</p>
<p>It would be really good if I can get help over this particular hurdle so I can create forms on my web page that use the grid for in place editing.</p>
<p>Any insights would be greatly appreciated.&#160;</p>
<p>Thanks</p>
<p>Ted</p>
]]></description>
        	        	<pubDate>Tue, 31 Jan 2012 23:11:11 +0200</pubDate>
        </item>
</channel>
</rss>