<?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: to pass the result of getDataIDs to a script</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/to-pass-the-result-of-getdataids-to-a-script</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/to-pass-the-result-of-getdataids-to-a-script/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on to pass the result of getDataIDs to a script</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/to-pass-the-result-of-getdataids-to-a-script#p16088</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/to-pass-the-result-of-getdataids-to-a-script#p16088</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you have included the xmlJsonClass when you download the grid you can use i</p>
<p>xmlJsonClass.toJson function</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 31 Mar 2010 17:46:21 +0300</pubDate>
        </item>
        <item>
        	<title>phicarre on to pass the result of getDataIDs to a script</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/to-pass-the-result-of-getdataids-to-a-script#p15948</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/to-pass-the-result-of-getdataids-to-a-script#p15948</guid>
        	        	<description><![CDATA[<p>Hello Tony and thank you,</p>
<p>By waiting for one solution, I found this:</p>
<p>var z = new Array();</p>
<p>var m = jQuery("#list3").getDataIDs();<br />for (var i=0; i &#60; m.length; i++)<br />&#160;{&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; z.push(m[i]);&#160;&#160; &#160;<br />&#160;};<br />&#160;mydata = JSON.stringify(z);</p>
<p>But I am obliged to add json2.js and to create an array !</p>
<p>Your solution seems light, mine seems strong</p>
<p>&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>
]]></description>
        	        	<pubDate>Thu, 25 Mar 2010 11:42:21 +0200</pubDate>
        </item>
        <item>
        	<title>tony on to pass the result of getDataIDs to a script</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/to-pass-the-result-of-getdataids-to-a-script#p15942</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/to-pass-the-result-of-getdataids-to-a-script#p15942</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>one possible solution is to use join to join the values and then server side to use some other function to explode the values at server - in php this is the function explode</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2082' value='Select Code' data-codeid='sfcode2082' /></p>
<div class='sfcode' id='sfcode2082'>
<p>var m =&#160; jQuery("#list3&#8243;).getDataIDs();</p>
<p>var mydata = m.join(",");</p>
<p>$.ajax(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: "GET",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:&#39;myscript.php&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; dataType: &#39;script&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data: {myVars: mydata},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; success: function(result) {},&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; error: function(requete,iderror) {}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; })</p>
</p>
<p>then use explode on&#160; myVars - i.e&#160;</p>
<p>myarray = explode(",",$_GET[&#39;myVars&#39;]);</p>
</div>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 25 Mar 2010 09:52:49 +0200</pubDate>
        </item>
        <item>
        	<title>phicarre on to pass the result of getDataIDs to a script</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/to-pass-the-result-of-getdataids-to-a-script#p15908</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/to-pass-the-result-of-getdataids-to-a-script#p15908</guid>
        	        	<description><![CDATA[<p>Crazy question ... for the specialists.</p>
<p>How to pass the content of the result of the following instruction</p>
<p>var m = jQuery("#list3").getDataIDs();&#160;&#160; // ["10","21","78", .......]</p>
<p>to a php script ?</p>
<p>var getVars = "r=" + m;</p>
<p>$.ajax(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: "GET",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:&#39;myscript.php&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; dataType: &#39;script&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; data: getVars,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; success: function(result) {},&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; error: function(requete,iderror) {}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; })&#160;</p>
</p>
<p>myscript see a string but not an array with the instruction $_GET[&#39;r&#39;]</p>
]]></description>
        	        	<pubDate>Tue, 23 Mar 2010 18:24:46 +0200</pubDate>
        </item>
</channel>
</rss>