<?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: modal window pops up only once - exception unrecognized expression</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/modal-window-pops-up-only-once-exception-unrecognized-expression</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/bugs/modal-window-pops-up-only-once-exception-unrecognized-expression/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on modal window pops up only once - exception unrecognized expression</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/modal-window-pops-up-only-once-exception-unrecognized-expression#p5020</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/modal-window-pops-up-only-once-exception-unrecognized-expression#p5020</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. I will do more for this in the next release not in 3.4.2</p>
<p>Regards</p>
<p>Tony</p>
</p>
<p>P.S. I realized that there is a more elegant solution, but it should be tested.</p>
]]></description>
        	        	<pubDate>Sat, 28 Feb 2009 13:47:07 +0200</pubDate>
        </item>
        <item>
        	<title>jean on modal window pops up only once - exception unrecognized expression</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/modal-window-pops-up-only-once-exception-unrecognized-expression#p5011</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/modal-window-pops-up-only-once-exception-unrecognized-expression#p5011</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>What&#39;s your oppinion on:</p>
<p>nmid = nm.match(/(\\w*)/i);<br />nmid = nmid.join(&#39;&#39;);</p>
<p>Cheers</p>
<p>Jean</p>
]]></description>
        	        	<pubDate>Sat, 28 Feb 2009 08:13:16 +0200</pubDate>
        </item>
        <item>
        	<title>tony on modal window pops up only once - exception unrecognized expression</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/modal-window-pops-up-only-once-exception-unrecognized-expression#p4864</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/modal-window-pops-up-only-once-exception-unrecognized-expression#p4864</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks for this. Yes this is true, but the same thing should be added in inline&#160; and cell editing modules. The same apply when we have name.someothername - also a good approach is to use common regExp for this purpose. Will see what I can do for this purpose.</p>
<p>Thank you</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 24 Feb 2009 07:17:53 +0200</pubDate>
        </item>
        <item>
        	<title>jean on modal window pops up only once - exception unrecognized expression</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/modal-window-pops-up-only-once-exception-unrecognized-expression#p4812</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/modal-window-pops-up-only-once-exception-unrecognized-expression#p4812</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I&#39;ve jquery r1.3.2 and jqgrid 3.4.1 installed and when I edit the data with the modal window it pops up one time - then if I want to edit another row I get the following exception in firefox 3.0.6 (osx):</p>
<p>[Exception... "&#39;Syntax error, unrecognized expression: ]&#39; when calling method: [nsIDOMEventListener::handleEvent]"&#160; nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"&#160; location: "&#60;unknown&#62;"&#160; data: no]</p>
<p>I realised it was due to I used a multiselect in jqgrid and the name of the field was name[] - due to a php backend and this was the source of the error. Below is a "nasty" diff to get rid of the square braktes [] for the id on the input in the modal window without altering the name attribute. It&#39;s a cimple regex to remove the square brakets.</p>
<p>==========</p>
<p>--- grid.formedit-old.js&#160;&#160;&#160;&#160;&#160;&#160;&#160; 2009-02-20 23:04:17.000000000 +0100<br />+++ grid.formedit.js&#160;&#160;&#160; 2009-02-20 23:05:14.000000000 +0100<br />@@ -425,6 +425,8 @@<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var nm, hc,trdata, tdl, tde, cnt=0,tmp, dc,elc, retpos=[];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#&#39;+rowid+&#39; td&#39;,obj.grid.bDiv).each( function(i) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; nm = obj.p.colModel[i].name;<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; nmid = nm.match(/(\\w*)/i);<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; nmid = nmid[0];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // hidden fields are included in the form<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(obj.p.colModel[i].editrules &#38;&#38; obj.p.colModel[i].editrules.edithidden == true) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; hc = false;<br />@@ -442,7 +444,7 @@<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; tmp = $.htmlDecode($(this).html());<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />-&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var opt = $.extend(obj.p.colModel[i].editoptions &#124;&#124; {} ,{id:nm,name:nm});<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var opt = $.extend(obj.p.colModel[i].editoptions &#124;&#124; {} ,{id:nmid,name:nm});<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(!obj.p.colModel[i].edittype) obj.p.colModel[i].edittype = "text";<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; elc = createEl(obj.p.colModel[i].edittype,opt,tmp);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(elc).addClass("FormElement");<br />@@ -469,7 +471,8 @@<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function fillData(rowid,obj){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var nm, hc,cnt=0,tmp;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#&#39;+rowid+&#39; td&#39;,obj.grid.bDiv).each( function(i) {<br />-&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; nm = obj.p.colModel[i].name;<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; nm = obj.p.colModel[i].name.match(/(\\w*)/i);<br />+&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; nm = nm[0];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // hidden fields are included in the form<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(obj.p.colModel[i].editrules &#38;&#38; obj.p.colModel[i].editrules.edithidden === true) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; hc = false;</p>
</p>
<p>========</p>
<p>Furthermore I had a scrollbar in the modalwindow and I got rid of it by changing grid.css to:</p>
<p>.modalcontent {<br />&#160;&#160;&#160; margin-bottom: 9px;<br />&#160;&#160;&#160; margin-left: 5px;<br />&#160;&#160;&#160; width: 97%;<br />}</p>
<p>Take care, jean</p>
]]></description>
        	        	<pubDate>Fri, 20 Feb 2009 16:56:35 +0200</pubDate>
        </item>
</channel>
</rss>