<?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: EditUrl - Data is not being posted to the server</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/editurl-data-is-not-being-posted-to-the-server</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/editurl-data-is-not-being-posted-to-the-server/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rahulreddy77 on EditUrl - Data is not being posted to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/editurl-data-is-not-being-posted-to-the-server#p24283</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/editurl-data-is-not-being-posted-to-the-server#p24283</guid>
        	        	<description><![CDATA[<p>Not to worry. It&#39;s resolved!!! <img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" />Dependency problems with the javascript libraries. I ended up using the 3.8 version of jqgrid which worked out wel.</p>
</p>
<p>Cheers</p>
<p>Rahul</p>
]]></description>
        	        	<pubDate>Mon, 15 Aug 2011 16:00:59 +0300</pubDate>
        </item>
        <item>
        	<title>rahulreddy77 on EditUrl - Data is not being posted to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/editurl-data-is-not-being-posted-to-the-server#p24275</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/editurl-data-is-not-being-posted-to-the-server#p24275</guid>
        	        	<description><![CDATA[<p>One more thing I notice. If I enter an invalid url, the page comes back with the error but when I examine the http request in the http server monitor tool, this time the query parameters are comming across.&#160;</p>
</p>
<p>Don&#39;t understand what&#39;s going on here. iT works for an invalid url but does &#160;NOT work for a valid URL!!!!!!</p>
</p>
<p>Is this a problem with the server side being a servlet?&#160;</p>
]]></description>
        	        	<pubDate>Sun, 14 Aug 2011 17:11:54 +0300</pubDate>
        </item>
        <item>
        	<title>rahulreddy77 on EditUrl - Data is not being posted to the server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/editurl-data-is-not-being-posted-to-the-server#p24273</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/editurl-data-is-not-being-posted-to-the-server#p24273</guid>
        	        	<description><![CDATA[<p>Can somebody help me PLEASE!!!!. &#160;I have spend a whole day and a sleepless night trying to work out why my grid data is not posted to the server. I desparately need some help here!!!!!</p>
</p>
<p>I am fetching data from a java servlet in json format and it comes up fine on the grid. But when I edit and hit submit/enter, I can see the editUrl being invoked through the http server monitor tool in the netbeans IDE. I have specfied the editUrl as a java servlet and I have implemented the servlet as well.</p>
</p>
<p>So the post is being invoked. But no data is being posted. i was expecting them to be posted as query parameters but the http monitor tool is saying "No data posted with this request". I have tried all the exampes but still no luck. All the documentation says the edited form data is posted to the server automatically as query parameters. Can someone please help. Here is the code for my page with the jqgrid constructor. Could someone PLEASE PLEASE PLEASE help. This is driving me crazy.....</p>
</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;</p>
<p>&#60;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&#62;</p>
<p>&#60;head&#62;</p>
<p>&#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;</p>
<p>&#60;title&#62;Field Inspection&#60;/title&#62;</p>
</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="resources/css/ui-lightness/jquery-ui-1.8.15.custom.css" /&#62;</p>
<p>&#60;link rel="stylesheet" type="text/css" media="screen" href="resources/css/ui.jqgrid.css" /&#62;</p>
<p>&#60;script src="resources/js/jquery-1.6.1.min.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;script src="resources/js/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;script src="resources/js/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#60;script src="resources/js/jquery-ui-1.8.15.custom.min.js" type="text/javascript"&#62;&#60;/script&#62;</p>
</p>
<p>&#60;script type="text/javascript"&#62;</p>
<p>$(function(){</p>
<p>&#160; &#160; var mygrid = jQuery("#ProgramOfWork");</p>
<p>&#160; &#160; var lastSel;</p>
<p>&#160; &#160; mygrid.jqGrid({</p>
<p>url: &#39;FetchProgOfWork&#39;,</p>
<p>datatype: "json",</p>
<p>height: 225,</p>
<p>rowNum: 10,</p>
<p>rowList: [10,20,30],</p>
<p>&#160; &#160; &#160; &#160; jsonReader :</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; {</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; root:"ProgOfWorkData",</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; page: "currpage",</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; total: "totalpages",</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; records: "totalrecords",</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; id: "PROG_ID",</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; repeatitems: false</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; },</p>
<p>&#160;&#160; 	colModel:[</p>
<p>&#160;&#160; 		{name:&#39;MAP_NO&#39;,index:&#39;MAP_NO&#39;, width:100, editable:true},</p>
<p>&#160;&#160; 		{name:&#39;PROG_DATE&#39;,index:&#39;PROG_DATE&#39;, width:100, editable:true, classes:&#39;dtPicker&#39;,editoptions:{ dataInit:function (elem) { $(elem).datepicker({dateFormat: &#39;M-yy&#39;}) } }},</p>
<p>&#160;&#160; 		{name:&#39;STATUS&#39;,index:&#39;STATUS&#39;, width:100, editable:true, edittype:"select",editoptions:{value:"NEW:NEW;SCOPING:SCOPING;INWORK:INWORK;AUDIT:AUDIT;CLOSED:CLOSED"}},</p>
<p>&#160;&#160; 		{name:&#39;INSP_TYPE&#39;,index:&#39;INSP_TYPE&#39;, width:100, editable:true, edittype:"select",editoptions:{value:"VEGMGNT:VEGMGNT;SRVLINEINSP:SRVLINEINSP"}},</p>
<p>&#160; 		{name:&#39;FIELD_USER&#39;,index:&#39;FIELD_USER&#39;, width:100, editable:true, edittype:"select", editoptions: {value:"reddyr: Rahul Reddy"}},</p>
<p>&#160; &#160; 		{name:&#39;START_DATE&#39;,index:&#39;START_DATE&#39;, width:100, editable:true, classes:&#39;dtPicker&#39;,editoptions:{ dataInit:function (elem) { $(elem).datepicker({dateFormat: &#39;d-M-yy&#39;}) } }},</p>
<p>&#160;&#160; &#160; 		{name:&#39;END_DATE&#39;,index:&#39;END_DATE&#39;, width:100, editable:true, classes:&#39;dtPicker&#39;,editoptions:{ dataInit:function (elem) { $(elem).datepicker({dateFormat: &#39;d-M-yy&#39;}) } }},</p>
<p>&#160;&#160; &#160; 		{name:&#39;SCOPE_COMP_DATE&#39;,index:&#39;SCOPE_COMP_DATE&#39;, width:100, editable:true, classes:&#39;dtPicker&#39;,editoptions:{ dataInit:function (elem) { $(elem).datepicker({dateFormat: &#39;d-M-yy&#39;}) } }},</p>
<p>&#160;&#160; &#160; 		{name:&#39;WORK_COMP_DATE&#39;,index:&#39;WORK_COMP_DATE&#39;, width:100, editable:true, classes:&#39;dtPicker&#39;,editoptions:{ dataInit:function (elem) { $(elem).datepicker({dateFormat: &#39;d-M-yy&#39;}) } }},</p>
<p>&#160;&#160; &#160; 		{name:&#39;AUDIT_COMP_DATE&#39;,index:&#39;AUDIT_COMP_DATE&#39;, width:100, editable:true, classes:&#39;dtPicker&#39;,editoptions:{ dataInit:function (elem) { $(elem).datepicker({dateFormat: &#39;d-M-yy&#39;}) } }},</p>
<p>&#160;&#160; 		{name:&#39;COMMENTS&#39;,index:&#39;COMMENTS&#39;, width:150, editable:true,&#160; edittype:"textarea", editoptions: {rows:"1"}},</p>
<p>&#160;&#160; 		{name:&#39;DESPATCH&#39;,index:&#39;DESPATCH&#39;, width:60}</p>
<p>&#160;&#160; 	],</p>
<p>&#160; &#160; &#160; &#160; editurl: &#39;UpdateProgOfWork&#39;,</p>
<p>&#160; &#160; &#160; &#160; loadonce: true,</p>
<p>&#160; &#160; &#160; &#160; gridComplete: function()</p>
<p>&#160; &#160; &#160; &#160; {</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; var ids = jQuery("#ProgramOfWork").jqGrid(&#39;getDataIDs&#39;);</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; for (var i = 0; i &#60; ids.length; i++)</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; {</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var cl = ids[i];</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; de = "&#60;input type=&#39;button&#39; value=&#39;SEND&#39; onclick=&#39;despatchProgOfWork(&#39;" + cl + "&#39; );&#39; /&#62;";</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; jQuery("#ProgramOfWork").jqGrid(&#39;setRowData&#39;, ids[i], { DESPATCH: de });</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; }</p>
<p>&#160; &#160; &#160; &#160; },</p>
<p>&#160; &#160; &#160; &#160; onSelectRow: function(id) {</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if (id &#38;&#38; id !== lastSel) {</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; mygrid.jqGrid(&#39;restoreRow&#39;,lastSel);</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var cmMapNo = mygrid.jqGrid(&#39;getColProp&#39;,&#39;MAP_NO&#39;);</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var cmpProgDate = mygrid.jqGrid(&#39;getColProp&#39;,&#39;PROG_DATE&#39;);</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var cmInspType = mygrid.jqGrid(&#39;getColProp&#39;,&#39;INSP_TYPE&#39;);</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; cmMapNo.editable = false;</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; cmpProgDate.editable = false;</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; cmInspType.editable = false;</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; mygrid.jqGrid(&#39;editRow&#39;, id, true, null, null, &#39;UpdateProgOfWork&#39;);</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; cmMapNo.editable = true;</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; cmpProgDate.editable = true;</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; cmInspType.editable = true;</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; lastSel = id;</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; }</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; },</p>
<p>&#160;&#160; 	pager: "#ProgramOfWorkFooter",</p>
<p>&#160;&#160; 	viewrecords: true,</p>
<p>&#160; &#160; &#160; &#160; gridview:true,</p>
<p>&#160; &#160; &#160; &#160; multiselect: false,</p>
<p>&#160;&#160; 	caption: "Program Of Work"</p>
<p>&#160; &#160; });</p>
<p>&#160; &#160; jQuery("#ProgramOfWork").jqGrid(&#39;navGrid&#39;,&#39;#ProgramOfWorkFooter&#39;,</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; { edit: true, add: true, del: false, search: true, refresh:true },</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; recreateForm: true,</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; beforeShowForm: function(form)</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $(&#39;#tr_MAP_NO&#39;, form).hide();</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $(&#39;#tr_PROG_DATE&#39;, form).hide();</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $(&#39;#tr_INSP_TYPE&#39;, form).hide();</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; }</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; },</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; recreateForm: true,</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; beforeShowForm: function(form)</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $(&#39;#tr_MAP_NO&#39;, form).show();</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $(&#39;#tr_PROG_DATE&#39;, form).show();</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $(&#39;#tr_INSP_TYPE&#39;, form).show();</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; }</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; },</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {},</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {multipleSearch:true, multipleGroup:true} );</p>
<p>&#160; &#160; jQuery("#ProgramOfWork").jqGrid(&#39;filterToolbar&#39;);</p>
<p>&#160; &#160; jQuery("#ProgramOfWork").jqGrid(&#39;navButtonAdd&#39;,"#ProgramOfWorkFooter",{caption:"Toggle",title:"Toggle Search Toolbar", buttonicon :&#39;ui-icon-pin-s&#39;, onClickButton:function(){ mygrid[0].toggleToolbar() } });</p>
<p>&#160; &#160; jQuery("#ProgramOfWork").jqGrid(&#39;navButtonAdd&#39;,"#ProgramOfWorkFooter",{caption:"Clear",title:"Clear Search",buttonicon :&#39;ui-icon-refresh&#39;, onClickButton:function(){ mygrid[0].clearToolbar() } });</p>
<p>&#160; &#160; mygrid[0].toggleToolbar();</p>
<p>});</p>
<p>function despatchProgOfWork(PROG_ID)</p>
<p>{</p>
<p>&#160; // Make an ajav call to fetch the required XML payload.</p>
<p>&#160; // Post the XML payload to the PUSH API for device magig from the client</p>
<p>&#160; // Proxy access is no issue because it&#39;s automatically using the end user&#39;s</p>
<p>&#160; // internet proxy.&#39;</p>
<p>};</p>
<p>&#60;/script&#62;</p>
</p>
<p>&#60;/head&#62;</p>
<p>&#60;body&#62;</p>
<p>&#60;table id="ProgramOfWork"&#62;&#60;tr&#62;&#60;td/&#62;&#60;/tr&#62;&#60;/table&#62;</p>
<p>&#60;div id="ProgramOfWorkFooter"&#62;&#60;/div&#62;</p>
<p>&#60;/body&#62;</p>
<p>&#60;/html&#62;</p></p>
]]></description>
        	        	<pubDate>Sun, 14 Aug 2011 13:50:28 +0300</pubDate>
        </item>
</channel>
</rss>