<?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: jquery alpha 3 and postdata with create action</title>
	<link>http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action</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/releases/jquery-alpha-3-and-postdata-with-create-action/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>glennswest on jquery alpha 3 and postdata with create action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6688</link>
        	<category>Releases</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6688</guid>
        	        	<description><![CDATA[<p>Ok, resolved. I&#39;ve moved to stuffing the token in the editurl.</p>
<p>That solves it for add/update/delete. Looks like delData</p>
<p>cannot be set in the grid definition, which I would have expected</p>
<p>to work. From reading the code, only can be passed on the function call.</p>
</p>
<p>I&#39;ve updated the plugin, and pushed it to github if anyone wants to see.</p>
</p>
<p>Thanks for the support.&#160;</p>
</p>
<p>Oh by the way, is there a update for the forum, the captcha has a wonderful way of losing my posts, third time to type this one.</p>
]]></description>
        	        	<pubDate>Thu, 14 May 2009 21:51:04 +0300</pubDate>
        </item>
        <item>
        	<title>glennswest on jquery alpha 3 and postdata with create action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6678</link>
        	<category>Releases</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6678</guid>
        	        	<description><![CDATA[<p>Ok, I spoke to soon, (After I pushed to github too).</p>
<p>The delete request (And I assume the add as well) need the</p>
<p>extra parameters. I tried postData, but doent seem the right place.</p>
<p>Is there a event, or is there a parameter?</p>
</p>
<p>Processing AirstateController#create (for ::1 at 2009-05-14 18:45:37) [POST]</p>
<p>&#160;&#160;Parameters: {"oper"=&#62;"del", "id"=&#62;"1564", "controller"=&#62;"airstate", "action"=&#62;"create"}</p>
<div></div>
]]></description>
        	        	<pubDate>Thu, 14 May 2009 05:54:35 +0300</pubDate>
        </item>
        <item>
        	<title>glennswest on jquery alpha 3 and postdata with create action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6677</link>
        	<category>Releases</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6677</guid>
        	        	<description><![CDATA[<p>Ok, I&#39;ll answer my own question. 🙂</p>
</p>
<p>The key to having this work is in the editRow, when you are doing the inline editing. As it does the save, and does not trigger other events.&#160;</p>
<p>I also found out that least in my Ruby 1.9.1 with Rails 2.3.2 the Javascript encodeURIComponent is redundant, and will cause the authenticitytoken not to work. (Despite plenty of examples that use it, possibly in older rails).&#160;</p>
</p>
<p>I can now do edits just fine with authenticyToken working as intended.&#160;</p>
<p>The final code:</p>
<p><a href="http://www.pastie.org/477749" rel="nofollow" target="_blank">http://www.pastie.org/477749</a></p>
<p>Here is the wrong way, with the encodeURIComponent:</p>
</p>
<p>Processing AirstateController#index to xml (for ::1 at 2009-05-14 16:09:31) [GET]</p>
<p>&#160;&#160;Parameters: {"nd"=&#62;"1242288570914", "_search"=&#62;"false", "rows"=&#62;"10", "page"=&#62;"1", "sidx"=&#62;"id", "sord"=&#62;"desc", "controlle"*********HERE******** "</p>
<p>"GoSD7xNPpttz2h2VjDyi28rt6pXPao7KsMdnzPGBr3I="</p>
<p>"GoSD7xNPpttz2h2VjDyi28rt6pXPao7KsMdnzPGBr3I%3D"</p>
<div>Notice the "=" has been encoded in the one we are returning, but not</div>
<div>the one we are comparing it too.</div>
<div></div>
<div>After we remove the encodeURIComponent, the comparison is good:</div>
<div>
<div>"*********HERE******** "</div>
<div>"GoSD7xNPpttz2h2VjDyi28rt6pXPao7KsMdnzPGBr3I="</div>
<div>"GoSD7xNPpttz2h2VjDyi28rt6pXPao7KsMdnzPGBr3I="</div>
<div></div>
<div>Thanks for the help. Now on to the next issue. 🙂</div>
<div></div>
</div>
]]></description>
        	        	<pubDate>Thu, 14 May 2009 03:27:07 +0300</pubDate>
        </item>
        <item>
        	<title>glennswest on jquery alpha 3 and postdata with create action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6671</link>
        	<category>Releases</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6671</guid>
        	        	<description><![CDATA[<p>Cannot for the life of me, get the beforeSubmit to run.</p>
</p>
<p><a href="http://www.pastie.org/477666" rel="nofollow" target="_blank">http://www.pastie.org/477666</a></p>
</p>
<p>Code looks right, least I should get a breakpoint on entry to the function in firebug, but nothing. It never gets called. I&#39;m using the inline edit, just wondering if that is driving it crazy.&#160;</p>
]]></description>
        	        	<pubDate>Thu, 14 May 2009 00:17:32 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jquery alpha 3 and postdata with create action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6646</link>
        	<category>Releases</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6646</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I do not think that this is a bug. Actually we separate the data that is posted for editing, deleting and adding from those that is needed to load the data in the grid.</p>
<p>You do not do anything wrong. You need to use the events in adding record and extend the postData array with what you posted to the server.</p>
<p>Also some hint - you can use beforeSubmit event something like</p>
<p>beforeSubmit : function (mypostdata, formid) {</p>
<p>// get the postData array using getGridParam</p>
<p>// extend the postData with mypostdata array</p>
<p>// use setGridParam to update the postData</p>
<p>return [true,"",""];</p>
<p>}</p>
]]></description>
        	        	<pubDate>Wed, 13 May 2009 13:10:55 +0300</pubDate>
        </item>
        <item>
        	<title>glennswest on jquery alpha 3 and postdata with create action</title>
        	<link>http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6639</link>
        	<category>Releases</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/releases/jquery-alpha-3-and-postdata-with-create-action#p6639</guid>
        	        	<description><![CDATA[<p>Howdy</p>
<p>Making good progress on my plugin for rails and jqgrid, I&#39;m adding</p>
<p>support for the authenticity token. I&#39;m attempting to use postData</p>
<p>to set the value to be passed back. I see it passed on all requests except</p>
<p>create. (Which of course is where I need it the most).</p>
<p>So what am I doing wrong here. Is there another option to the grid for the create action?</p>
<p>The jqgrid:</p>
<p><a href="http://www.pastie.org/476753" rel="nofollow" target="_blank">http://www.pastie.org/476753</a></p>
]]></description>
        	        	<pubDate>Wed, 13 May 2009 08:03:02 +0300</pubDate>
        </item>
</channel>
</rss>