<?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: what is the form id</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id</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/what-is-the-form-id/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on what is the form id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19586</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19586</guid>
        	        	<description><![CDATA[<p>It&#39;s OK Stephen. The most important that the documentation has correct and not wrong information. Some releases before formid parameter was really form id, now it is jQuery form object. I personally would be better to rename the parameter from <strong>formid</strong> to <strong>form</strong> in the documentation.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Wed, 08 Sep 2010 11:57:27 +0300</pubDate>
        </item>
        <item>
        	<title>stephen on what is the form id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19579</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19579</guid>
        	        	<description><![CDATA[<blockquote>
<p>OlegK said:</p>
<p>It is just a small bug in the documentation. formid is not a string like if described in the documentation. It is just <strong>jQuery object</strong> for the form. The corresponding line looks like</p>
<p>Somebody should just change the documentation of the wiki page /jqgridwiki/doku.php?id=wiki:form_editing. (Everyone can do it)</p>
<p>Regards<br />Oleg&#160;</p>
</blockquote>
<hr />
<p>Hi Oleg, I have changed this documentation.</p>
<p>I have replaced "the id of the form" by "the jQuery object of form id, you can use formid[0].id to get form id".</p>
<p>Please let me know if it is acceptable or not.</p>
<p>Additionally, I didn&#39;t change the description of formId in the event beforeCheckValues since it is ok.</p>
<p>Please let me know if anything is missing.</p>
<p>Thanks,<br />Stephen</p>
<p>&#160;</p>
]]></description>
        	        	<pubDate>Wed, 08 Sep 2010 05:26:51 +0300</pubDate>
        </item>
        <item>
        	<title>stephen on what is the form id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19578</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19578</guid>
        	        	<description><![CDATA[<p>Hi Oleg!</p>
<p>Appreciate&#160;your reply, you are right I&#160;made a mistake&#160;at this point.&#160;</p>
<p>The id of form is "FrmGrid_"+gridId and the name is "FormPost"(they are defined in grid.formedit.js), we can know different grid/form by the id, but I don&#39;t know why doesn&#39;t the form name have a&#160;prefix like form id? Perhaps it doesn&#39;t matter.</p>
<p>Anyway, thanks for your warm heart.</p>
<p>Thanks,</p>
<p>Stephen</p>
]]></description>
        	        	<pubDate>Wed, 08 Sep 2010 05:07:28 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on what is the form id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19562</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19562</guid>
        	        	<description><![CDATA[<p>Hi stephen!</p>
<p>You make very simple error. jQuery objects are <strong>a wrapper over array of DOM objects</strong> and the DOM object itself. If you use</p>
<p>var x = $("#blabal");</p>
<p>then x will be a wrapper to the arrays of DOM objects found by selector #blabal. It x.length === 0 then no elements are found. If do some elements are found, then you can access the elements with x[i].</p>
<p>So to display the <em>id</em> of the form identified by the jQuery object <em>form</em> you should use not the syntax alert(form.id) but alert(form[0].id):</p>
<p>beforeSubmit : function(postdata, form) {</p>
<p>&#160;&#160;&#160; alert ("in beforeSubmit formid=" + form[0].id);</p>
<p>}</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Tue, 07 Sep 2010 12:02:18 +0300</pubDate>
        </item>
        <item>
        	<title>stephen on what is the form id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19558</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19558</guid>
        	        	<description><![CDATA[<p>Thanks, Oleg</p>
<p>Yes, I found the "<strong>frmgr = "FrmGrid_"+gID,frmtb = "TblGrid_"+gID</strong>"&#160; on line 236 in grid.formedit.js, <br />the variable "frmgr" will be passed as jQuery object (<strong>$("#frmgr")</strong>) to many functions like "beforeShowForm".<br />I have a question. If there are more than one grids in one page and they use the same "beforeShowForm" function, how to know the call come from gridA or gridB?<br />I want to distinguish them with the id or name of the form/grid, but I can&#39;t get the id or name from the parameter formid, alert(formid.id) is "undefined".<br />Is there any good way to get the id or name of form/gird in this function?</p>
]]></description>
        	        	<pubDate>Tue, 07 Sep 2010 08:29:41 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on what is the form id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19543</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19543</guid>
        	        	<description><![CDATA[<p>It is just a small bug in the documentation. formid is not a string like if described in the documentation. It is just <strong>jQuery object</strong> for the form. The corresponding line looks like</p>
<p>if( $.isFunction(rp_ge.beforeSubmit)) &#160;{ ret = rp_ge.beforeSubmit(postdata,<strong>$("#"+frmgr)</strong>); }</p>
<p>In the same form fill be called all callback function like onInitializeForm,&#160;beforeCheckValues afterComplete, beforeShowForm, afterShowForm, beforeInitData and so on.</p>
<p>Somebody should just change the documentation of the wiki page /jqgridwiki/doku.php?id=wiki:form_editing. (Everyone can do it)</p>
<p>Regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 06 Sep 2010 13:17:18 +0300</pubDate>
        </item>
        <item>
        	<title>stephen on what is the form id</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19537</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/what-is-the-form-id#p19537</guid>
        	        	<description><![CDATA[<p>As we know, formid is the parameter of some functions, for example, beforeSubmit.</p>
<p>But I found it is not a string, alert(formid), it is "[object] [object]".</p>
<p>What&#39;s the actual value of form id? Thanks.</p></p>
]]></description>
        	        	<pubDate>Mon, 06 Sep 2010 06:48:15 +0300</pubDate>
        </item>
</channel>
</rss>