<?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: Passing Data back from a lookup form</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/passing-data-back-from-a-lookup-form</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/discussion/passing-data-back-from-a-lookup-form/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Reg on Passing Data back from a lookup form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/passing-data-back-from-a-lookup-form#p1158</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/passing-data-back-from-a-lookup-form#p1158</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I&#39;ll certainly try this; thanks for the tip.</p>
<p>We don&#39;t have any mention of these two methods in the docs. Perhaps this is included in what you mentioned you noticed was missing.</p>
<p>Reg</p>
]]></description>
        	        	<pubDate>Fri, 18 Jul 2008 07:36:24 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Passing Data back from a lookup form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/passing-data-back-from-a-lookup-form#p1151</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/passing-data-back-from-a-lookup-form#p1151</guid>
        	        	<description><![CDATA[<p>Reg,</p>
<p>IMHO you do not need any plugin. You can use some already build in</p>
<p>jqGrid functions with a little code. So look in grid.formedit.js.</p>
<p>There are two usefull functions (that can be used anywhere) -</p>
<p>createModal and viewModal. Look into the parameters and</p>
<p>you will have idea how they can be used. Now the little piece of code.</p>
<p>Let suppose that your form has id myform - then</p>
<p>var fields = $("#myform").serializeArray();<br />var griddata = {};<br />jQuery.each(fields, function(i, field){<br />&#160;&#160;&#160; griddata[field.name] = field.value;<br />&#160;});</p>
<p>griddata is already array that can be used anywhere.</p>
<p>If you use inline editing&#160; DO NOT USE setGridRow - this way you will overrite</p>
<p>your edited fields</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 18 Jul 2008 04:34:42 +0300</pubDate>
        </item>
        <item>
        	<title>Reg on Passing Data back from a lookup form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/passing-data-back-from-a-lookup-form#p1147</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/passing-data-back-from-a-lookup-form#p1147</guid>
        	        	<description><![CDATA[<p>This is not a specifically a jqGrid question, but I am hoping someone will know the answer: I have placed an icon beside an input field to call up another form to do a search of the data. The called form allows entering criteria and then presents the records that match.</p>
<p>When the user clicks on one of the records, I want to return the contents of a field and put it into the&#160;cell in my jqGrid.</p>
<p>Before I had started to use jqGrid, I had this working using a bit of (I think) very old javascript:</p>
<p>function id8SetField()<br />{ //v2.0<br />&#160; var args=id8SetField.arguments;<br />&#160; for (i=0; i&#60;(args.length-1); i+=2)<br />&#160; { <br />&#160;eval(&#8221;window.opener.document.forms(0).&#8221;+args[i]+&#8221;.value=&#39;&#8221;+args[i+1]+&#8221;&#39;&#8221;)<br />&#160; }<br />&#160; window.close()<br />}</p>
<p>where args are the name and value&#160;of&#160;a field on the calling form.</p>
<p>Before I modify this to work with jqGrid, I am wondering if anyone knows of a jQuery plugin that makes this easy. I have looked through the jQuery Plugins pages (but there are so many it would be easy to overlook one) and checked my jQuery in Action book and haven&#39;t found anything. I can&#39;t believe this hasn&#39;t been done before.</p>
<p>Thanks</p>
<p>Reg</p>
]]></description>
        	        	<pubDate>Thu, 17 Jul 2008 18:24:01 +0300</pubDate>
        </item>
</channel>
</rss>