<?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: Using a form to define base query for jqGrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/using-a-form-to-define-base-query-for-jqgrid</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/using-a-form-to-define-base-query-for-jqgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Using a form to define base query for jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-a-form-to-define-base-query-for-jqgrid#p19403</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-a-form-to-define-base-query-for-jqgrid#p19403</guid>
        	        	<description><![CDATA[<p>First of all, if you use HTTP GET to fill the grid the <strong>url: &#39;quickSearch.cfc?method=getClientData&#39;</strong> is the same as <strong>url:&#160;&#39;quickSearch.cfc&#39;</strong> and <strong>postData: {method: &#39;getClientData&#39;}</strong> (see description of the <strong>data</strong>&#160;parameter of <a href="http://api.jquery.com/jQuery.ajax/&#160;for" rel="nofollow" target="_blank"><a href="http://api.jquery.com/jQuery.a" rel="nofollow">http://api.jquery.com/jQuery.a</a>...../&#160;for</a> more information)</p>
<p>You can bind <strong>trigger(&#39;reloadGrid&#39;)</strong> to the click event of the <em>submit</em> button of the form (the type can be changed to the "button"). The using of postData&#160;work of cause not only for HTTP GET, but with HTTP POST also, but the data will be post in the HTTP body instead of appending of the URL.</p>
<p>In this example I suppose that the form is on the same page as jqGrid. If you want to place jqGrid on the other page you can modify the contain of functions from the postData correspond to the way which you use th the forward the information about the form state.</p>
<p>Best regards<br />Oleg&#160;</p></p>
]]></description>
        	        	<pubDate>Sun, 29 Aug 2010 17:42:19 +0300</pubDate>
        </item>
        <item>
        	<title>tjones1105 on Using a form to define base query for jqGrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-a-form-to-define-base-query-for-jqgrid#p19399</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-a-form-to-define-base-query-for-jqgrid#p19399</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m not sure why I&#39;m haveing a hard time trying to formulate my questions but here it goes.</p>
</p>
<p>I would like to have a form on one page that calls another page which has the jqGrid in it and I would like the form content to create the baseline query for the Grid.</p>
</p>
<p>For Example:</p>
<p>index.cfm</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2711' value='Select Code' data-codeid='sfcode2711' /></p>
<div class='sfcode' id='sfcode2711'>&#60;body&#62;<br />&#60;form action=&#34;quickSearch.cfm&#34; method=&#34;get&#34; name=&#34;searchForm&#34;&#62;<br />&#160;&#160;&#160; &#60;select name=&#34;field&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;option value=&#34;hostname&#34;&#62;Hostname&#60;/option&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;option value=&#34;ipaddress&#34;&#62;IP Address&#60;/option&#62;<br />&#160;&#160;&#160; &#60;/select&#62;<br />&#160;&#160;&#160; &#60;input type=&#34;text&#34; value=&#34;&#34; name=&#34;searchData&#34; /&#62;<br />&#160;&#160;&#160; &#60;input type=&#34;submit&#34; value=&#34;Search&#34;&#62;<br />&#60;/form&#62;<br />&#60;/body&#62;</div>
<p>quickSearch.cfm</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3771' value='Select Code' data-codeid='sfcode3771' /></p>
<div class='sfcode' id='sfcode3771'>&#60;script type=&#34;text/javascript&#34;&#62;<br />&#160;&#160; &#160;$(document).ready(function()<br />&#160;&#160; &#160;&#160;&#160; &#160;{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#34;#resultsGrid&#34;).jqGrid(<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;quickSearch.cfc?method=getClientData&#39;, // &#60;--- Here is where I want to add the query filter<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;json&#39;</div>
<p>What do I need to do to make this happen?</p>
</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Sat, 28 Aug 2010 01:24:50 +0300</pubDate>
        </item>
</channel>
</rss>