<?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: How to add a parameter to the ajax call (URL: parameter)</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-parameter-to-the-ajax-call-url-parameter</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/how-to-add-a-parameter-to-the-ajax-call-url-parameter/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Herbert on How to add a parameter to the ajax call (URL: parameter)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-parameter-to-the-ajax-call-url-parameter#p7082</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-parameter-to-the-ajax-call-url-parameter#p7082</guid>
        	        	<description><![CDATA[<p>ok I found the solution myself..</p>
</p>
<p>If someone else also have this problem try to use this parameter:</p>
<p>postData</p>
<p>In exmaple I simply added</p>
<p>postData: {lang: lang},</p>
<p>and the current language I read from a hidden filed</p>
<p>var lang = $("#sprache").attr(&#39;value&#39;);</p>
]]></description>
        	        	<pubDate>Fri, 05 Jun 2009 08:02:29 +0300</pubDate>
        </item>
        <item>
        	<title>Herbert on How to add a parameter to the ajax call (URL: parameter)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-parameter-to-the-ajax-call-url-parameter#p7081</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-parameter-to-the-ajax-call-url-parameter#p7081</guid>
        	        	<description><![CDATA[<p>Hi</p>
<p>I have a simple jqGrid which shows the data from one method. The data of the table is in 2 languages so I need to pass 5th parameter to my method with the current language to get only the attributes in this lanage.</p>
<p>I used the geeting started example from the demonstration page but my Object is a Coldfusion Component. But I think that doesnt change anything.</p>
<p>In the js config file I have this url defined</p>
<p>url:&#39;/includes/components/WerkstoffDB.cfc?method=getData</p>
<p>The json string is this one:</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; root: "ROWS", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "PAGE",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: "TOTAL",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records:"RECORDS",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; accountdata:"ACCOUNTDATA", <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; cell: "", <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; id: "0" <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }</p>
<p>How can I pass a 5th parameter (en or de) to my Method getData?</p>
<p>Here the head of my object:</p>
<p>&#160;&#160;&#160; &#60;cffunction name="getData" access="remote" returnformat="json"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;cfargument name="page" required="no" default="1" hint="Page WerkstoffDB is on"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;cfargument name="rows" required="no" default="10" hint="Number of Rows to display per page"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;cfargument name="sidx" required="no" default="" hint="Sort Column"&#62;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#60;cfargument name="sord" required="no" default="ASC" hint="Sort Order"&#62;</p>
<p>Here I want a 5th parameter</p>
]]></description>
        	        	<pubDate>Fri, 05 Jun 2009 05:51:08 +0300</pubDate>
        </item>
</channel>
</rss>