<?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: Usage of $.jgrid.jqID everywhere where it's needed</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/usage-of-jgrid-jqid-everywhere-where-its-needed</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/usage-of-jgrid-jqid-everywhere-where-its-needed/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Usage of $.jgrid.jqID everywhere where it's needed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/usage-of-jgrid-jqid-everywhere-where-its-needed#p28155</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/usage-of-jgrid-jqid-everywhere-where-its-needed#p28155</guid>
        	        	<description><![CDATA[<p>Hello Oleg,</p>
</p>
<p>Just added the suggestion. Thanks</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 29 Jan 2013 10:24:04 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Usage of $.jgrid.jqID everywhere where it's needed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/usage-of-jgrid-jqid-everywhere-where-its-needed#p28152</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/usage-of-jgrid-jqid-everywhere-where-its-needed#p28152</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I want remind you about one part from the old suggestion.</p>
<p>I answerd last time many questions on the stackoverflow where the reason of posted problem was usage of <strong>id</strong> of grid having spaces. So I would like remind you about the suggestion to modify <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.3/js/grid.base.js#L144" target="_blank">the line</a> of code of <strong>jqID</strong></p>
<p><input type='button' class='sfcodeselect' name='sfselectit824' value='Select Code' data-codeid='sfcode824' /></p>
<div class='sfcode' id='sfcode824'>return String(sid).replace(/[!&#34;#$%&#38;&#39;()*+,.\\/:;&#60;=&#62;?@\\[\\\\\\]\^`{&#124;}~]/g,&#34;\\\\mce_markeramp;&#34;);</div>
<p>and include additional space in the list of characters which need be escaped:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5160' value='Select Code' data-codeid='sfcode5160' /></p>
<div class='sfcode' id='sfcode5160'>return String(sid).replace(/[!&#34;#$%&#38;&#39;()*+,.\\/: ;&#60;=&#62;?@\\[\\\\\\]\^`{&#124;}~]/g,&#34;\\\\mce_markeramp;&#34;);</div>
<p>I am very careful now with the editor used in the forum if one use backslashes in the code. So I repeat additionally in words, that <strong>I suggest just add &#39; &#39; (space character) in the mask</strong>. I think that this simple change will save many time for some developers who uses jqGrid.</p>
<p>Oleg</p>
]]></description>
        	        	<pubDate>Mon, 28 Jan 2013 17:52:03 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Usage of $.jgrid.jqID everywhere where it's needed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/usage-of-jgrid-jqid-everywhere-where-its-needed#p26011</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/usage-of-jgrid-jqid-everywhere-where-its-needed#p26011</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I examined all places of the code of jqGrid where id selectors like <strong>$("#" + any text)</strong> are used and made correction.</p>
<p>I hate GitHub web interface, "Git Gui" and "Git Bash" (or msysGit) because I couldn&#39;t found simple way to post some <em>selected</em> commits as the <em>new</em> pull request. In the pull request are merged many changes even the changes which I pooled from the main code of jqGrid (your code).</p>
<p>Nevetheless the GitHub can be used to documentate all the changes which I suggested:</p>
<ul>
<li>first of all I suggest to include " " (blank or space) to the list of the charackters which will be escaped (see <a href="https://github.com/OlegKi/jqGrid/commit/2a5a5cb2bf9b6d9910f0738d94b6c23e4ca4281b#L0L140" target="_blank">here</a>). CSS allows to include any escaped characters in the selectors (see <a href="http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier" target="_blank">here</a>). jQuery UI just escapes any character which is not digit, underscore (_), hyphen (-) or english letter (A-Za-z) (see <a href="https://github.com/jquery/jquery-ui/blob/1.8.18/ui/jquery.ui.datepicker.js#L175" target="_blank">the line</a>). I think that it&#39;s better to include explicitly all the characters which we need to escape.</li>
<li>the current code of jqGrid stay the question about escaping of <strong>p.pager</strong> and <strong>p.toppager</strong> (see <a href="https://github.com/tonytomov/jqGrid/blob/v4.3.1/js/grid.base.js#L2294-2301" target="_blank">here</a>). After analysing of the code which uses <strong>p.pager</strong>&#160;and&#160;<strong>p.toppager</strong>&#160;I can suggest to hold the values of the parameters in the form of ID selector which is escaped to be used directly in jQuery. If somewhere one need to get unescaped id one can use constructions like <strong>$(ts.p.pager).attr("id")</strong> or <strong>$(ts.p.pager)[0].id</strong>. It makes the usage <strong>p.pager</strong>&#160;and&#160;<strong>p.toppager</strong>&#160;simple enough and clear. So I suggest to make the following change: see <a href="https://github.com/OlegKi/jqGrid/commit/2a5a5cb2bf9b6d9910f0738d94b6c23e4ca4281b#L0R2318" target="_blank">here</a>.</li>
<li>The full changes in the code to use consequently <strong>$.jgrid.jqID</strong>&#160;devided in the changes in every module. The links below describes the changes for every module: <a href="https://github.com/OlegKi/jqGrid/commit/2a5a5cb2bf9b6d9910f0738d94b6c23e4ca4281b" target="_blank">grid.base.js</a>, <a href="https://github.com/OlegKi/jqGrid/commit/265f8f18c0aedec86dfe6188ffdc5d69d14e9ce6" target="_blank">grid.common.js</a>, <a href="https://github.com/OlegKi/jqGrid/commit/e17e6f0c365348f3165592493cb88583c03d4926" target="_blank">grid.custom.js</a>, <a href="https://github.com/OlegKi/jqGrid/commit/b6a5d94437d1654d6b4dac250882c37486e59ab4" target="_blank">grid.formedit.js</a>&#160;and <a href="https://github.com/OlegKi/jqGrid/commit/84482b55fb8a2b6940efea25c7fa033604004550" target="_blank">this one fix</a>, &#160;<a href="https://github.com/OlegKi/jqGrid/commit/541bf257b01032d788ff651e2aaad842958f525a" target="_blank">grid.grouping.js</a>, <a href="https://github.com/OlegKi/jqGrid/commit/678dc08b49e31ff0a9d231df09f1f0e6cb75bd64" target="_blank">grid.inlinedit.js</a>, <a href="https://github.com/OlegKi/jqGrid/commit/1d186584ff9cd51040f0dea214ccd5b77a629f47" target="_blank">grid.jqueryui.js</a>, <a href="https://github.com/OlegKi/jqGrid/commit/2ba95a0f70f156cc5e7b3d128d20275b55eee242" target="_blank">grid.subgrid.js</a>&#160;and <a href="https://github.com/OlegKi/jqGrid/commit/85b3693ba255baaa3087692f53bf8b50a014e92f" target="_blank">grid.treegrid.js</a>.</li>
</ul>
<p>I hope that I found all the places of the usage of id selectors in the jqGrid code. After the includeing of the above changes I think one will be able to use any characters as ids or name property of colModel.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Sat, 25 Feb 2012 13:02:12 +0200</pubDate>
        </item>
</channel>
</rss>