<?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: Post data with search options for external url call (reports, charts,...)</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/post-data-with-search-options-for-external-url-call-reports-charts</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/post-data-with-search-options-for-external-url-call-reports-charts/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>mapdirk on Post data with search options for external url call (reports, charts,...)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/post-data-with-search-options-for-external-url-call-reports-charts#p14788</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/post-data-with-search-options-for-external-url-call-reports-charts#p14788</guid>
        	        	<description><![CDATA[<p>I found the solution: myPostData=jQuery("#mygrid").getPostData()) gives me the data posted by jqgrid.</p>
<p>If anyone is interested in using this with jpgraph one should consider that it is hard to send via &#39;POST&#39; to jpgraph.</p>
<p>Instead it is easy to use &#39;GET&#39;:</p>
<p>jQuery(&#39;#my HtmlElement&#39;).html(&#39;&#60;img src="mygraph.php&#39;+getRequest+&#39;" /&#62;&#39;);</p>
<p>where getRequest can be obtained from myPostData the following way:</p>
<p>getRequest=&#39;?&#39;+concatObject(myPostData);</p>
</p>
<p>with</p>
<p>&#160;function concatObject(obj) {<br />&#160; str=&#39;&#39;;<br />&#160; for(prop in obj)<br />&#160; {<br />&#160;&#160;&#160; str+=prop + "="+ obj[prop]+"&#38;";<br />&#160; }<br />&#160; return(str);</p></p>
]]></description>
        	        	<pubDate>Sat, 13 Feb 2010 19:13:54 +0200</pubDate>
        </item>
        <item>
        	<title>mapdirk on Post data with search options for external url call (reports, charts,...)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/post-data-with-search-options-for-external-url-call-reports-charts#p14779</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/post-data-with-search-options-for-external-url-call-reports-charts#p14779</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I would like to call a php script from jqgrid to generate a chart (with the jpgraph tool) or generate a pdf with tcpdf.</p>
<p>This is no problem: I could do an ajax request to makechart.php and put the result somewhere on my page.</p>
</p>
<p>My problem is: How do I add the data from the actual jqgrid search specification that is posted for example when refreshing the grid?</p>
<p>For exampleI would like to have a button which calls onclick:</p>
<p>&#160; jQuery.post(&#39;makechart.php&#39;, postdata, callbackFunc, type)</p>
<p>but I do not know how to fill postdata with the "standard" post data that is transmited for a search or a page refresh.</p>
</p>
<p>I would be happy to get a hint on this.</p>
</p>
<p>Dirk</p></p>
]]></description>
        	        	<pubDate>Sat, 13 Feb 2010 05:00:28 +0200</pubDate>
        </item>
</channel>
</rss>