<?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: Anyone got b(":input:visible", a.w)&#091;0&#093; is undefined?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined</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/anyone-got-binputvisible-a-w0-is-undefined/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Fancellu on Anyone got b(":input:visible", a.w)&#091;0&#093; is undefined?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18657</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18657</guid>
        	        	<description><![CDATA[<p>Looks likes this is a known issue to do with jqModal:</p>
</p>
<p><a href="http://stackoverflow.com/questions/1348844/jqmodal-jquery-problem-div-not-updating-with-new-content" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....ew-content</a></p>
</p>
<p>Basically:</p>
</p>
<p>jqModal.js line 64:</p>
</p>
<p>f=function(h){try{$(&#39;:input:visible&#39;,h.w)[0].focus();}catch(_){}}</p>
</p>
<p>i.e. tries to focus on first visible input field, which will fail, and throw up an error in firebug. Although I only see this sometimes!</p>
<p>It can work, then refresh on same page and then it fails. Very odd.</p>
</p>
<p>Fixed code in jquery.jqGrid.min.js thus:</p>
</p>
<p>s=function(a){var vis=b(":input:visible",a.w); if (vis.length&#62;0) try{vis[0].focus()}catch(f){}}</p>
</p>
<p>i.e. I check to see there are any visible elements first.</p>
]]></description>
        	        	<pubDate>Mon, 19 Jul 2010 12:47:04 +0300</pubDate>
        </item>
        <item>
        	<title>Fancellu on Anyone got b(":input:visible", a.w)&#091;0&#093; is undefined?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18641</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18641</guid>
        	        	<description><![CDATA[<p>FYI, My file sizes are:</p>
</p>
<p>ui.jqgrid.css 10,276 bytes</p>
<p>jquery.jqGrid.min.js 219,415 bytes</p>
<p>grid.locale-en.js 2,954 bytes</p>
</p>
<p>Dino.</p>
]]></description>
        	        	<pubDate>Fri, 16 Jul 2010 18:53:26 +0300</pubDate>
        </item>
        <item>
        	<title>Fancellu on Anyone got b(":input:visible", a.w)&#091;0&#093; is undefined?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18640</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18640</guid>
        	        	<description><![CDATA[<p>Argh, now I&#39;m getting it again, same as Kyle.</p>
</p>
<p>I downloaded all the modules, and the css is correct, using latest 3.7.2.</p>
</p>
<p>What does</p>
<p><strong>&#160;b(":input:visible", a.w)[0] is undefined</strong></p>
<p>mean? i.e. what is it looking for that is failing?</p>
</p>
<p>Even a simple array grid fails if I select a row and try to delete.</p>
</p>
<p>var mydata = [ {id:"1",invdate:"2007-10-01",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, {id:"2",invdate:"2007-10-02",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, {id:"3",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"}, {id:"4",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, {id:"5",invdate:"2007-10-05",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, {id:"6",invdate:"2007-09-06",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"}, {id:"7",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, {id:"8",invdate:"2007-10-03",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"}, {id:"9",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"} ]; <br />&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; $("#mygrid").jqGrid({ datatype: "local", height: 250, pager: &#39;#mypager&#39;, <br />&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;], <br />&#160;&#160;&#160;&#160;&#160; colModel:[ {name:&#39;id&#39;,index:&#39;id&#39;, width:60, sorttype:"int"}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90, sorttype:"date"}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;name&#39;,index:&#39;name&#39;, width:100}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:"right",sorttype:"float"}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right",sorttype:"float"}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right",sorttype:"float"}, <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false} ], <br />&#160;&#160;&#160;&#160;&#160; caption: "Manipulating Array Data" }); <br />&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; for(var i=0;i&#60;=mydata.length;i++) jQuery("#mygrid").jqGrid(&#39;addRowData&#39;,i+1,mydata[i]);<br />&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#mygrid&#39;).jqGrid(&#39;navGrid&#39;,&#39;#mypager&#39;,{});</p>
</p>
<p>I probably have got something wrong in my setup. But I have no clue!</p>
]]></description>
        	        	<pubDate>Fri, 16 Jul 2010 18:49:09 +0300</pubDate>
        </item>
        <item>
        	<title>Fancellu on Anyone got b(":input:visible", a.w)&#091;0&#093; is undefined?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18570</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18570</guid>
        	        	<description><![CDATA[<p>Aha, I was getting the same thing, and I worked out why, for me.</p>
</p>
<p>In my delete handler I was doing</p>
</p>
<p>beforeShowForm: function()<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; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; $(&#39;#mygrid&#39;).jqGrid(&#39;restoreRow&#39;,lastedit);&#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;}</p>
</p>
<p>i.e. get out of edit mode before we delete. Unfortunately, I wasn&#39;t checking for undefined, and not having entered edit mode yet, that&#39;s what it was, hence the above error. Silly me.</p>
]]></description>
        	        	<pubDate>Tue, 13 Jul 2010 16:53:49 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Anyone got b(":input:visible", a.w)&#091;0&#093; is undefined?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18187</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18187</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>How look your head section?</p>
<p>Which modules do you have downloaded?</p>
<p>Be a sure that you use the grid CSS fiele from the production dir and not from development.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 25 Jun 2010 10:37:02 +0300</pubDate>
        </item>
        <item>
        	<title>kyle on Anyone got b(":input:visible", a.w)&#091;0&#093; is undefined?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18094</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/anyone-got-binputvisible-a-w0-is-undefined#p18094</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I have been working with jqgrid for a few weeks, and it is a great system. I got my application working, but this one thing keeps driving me crazy</p>
</p>
<p>Whenever I hit the delete row button on the pager, I get the warning dialog box, and then firebug kicks in with a javascript error:</p>
<p>Line 362&#160;b(":input:visible", a.w)[0] is undefined</p>
</p>
<p>I have tried to bug hunt, and have made a super simple grid, but no matter what I do firebug stops with this error. My super simple grid is below:</p>
</p>
<p>$(document).ready(function(){</p>
<p>jQuery("#list").jqGrid({</p>
<p>url:&#39;db/get_jeger.php?nd=&#39;+new Date().getTime(),</p>
<p>datatype: "json",</p>
<p>&#160; &#160; colNames:[&#39;Jeger ID&#39; ,&#39;Navn&#39;],</p>
<p>&#160; &#160; colModel :[&#160;</p>
<p>&#160; &#160; &#160; {name:&#39;jeger_id&#39;, index:&#39;jeger_id&#39;, align:&#39;center&#39;,width:100,editable:true},&#160;</p>
<p>&#160; &#160; &#160; {name:&#39;navn&#39;, index:&#39;navn&#39;, align:&#39;left&#39;, width:170,editable:true}		&#160;</p>
<p>&#160; &#160; ],</p>
<p>&#160; &#160; pager: &#39;#pagerId&#39;,</p>
<p>&#160; &#160; sortname: &#39;jeger_id&#39;,</p>
<p>&#160; &#160; sortorder: &#39;asc&#39;,</p>
<p>editurl: "db/edit_jeger.php",</p>
<p>&#160; &#160; caption: &#39;Alle registrerte jegere&#39;</p>
<p>&#160; });</p>
</p>
<p>jQuery("#list").jqGrid(&#39;navGrid&#39;,&#39;#pagerId&#39;,{},{},{},{},{});</p>
<p>});</p>
</p>
<p>I would really appreciate it if anyone can help me with some info about this error message.</p>
</p>
<p>Thanks a lot!</p>
</p>
<p>-Kyle</p>
]]></description>
        	        	<pubDate>Mon, 21 Jun 2010 02:58:02 +0300</pubDate>
        </item>
</channel>
</rss>