<?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: Problem with IntelliSense in jqModal.js and how to fix it</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-intellisense-in-jqmodaljs-and-how-to-fix-it</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/problem-with-intellisense-in-jqmodaljs-and-how-to-fix-it/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Problem with IntelliSense in jqModal.js and how to fix it</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-intellisense-in-jqmodaljs-and-how-to-fix-it#p9214</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-intellisense-in-jqmodaljs-and-how-to-fix-it#p9214</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. Fixed in GitHub.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 02 Sep 2009 04:48:55 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Problem with IntelliSense in jqModal.js and how to fix it</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-intellisense-in-jqmodaljs-and-how-to-fix-it#p9193</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-intellisense-in-jqmodaljs-and-how-to-fix-it#p9193</guid>
        	        	<description><![CDATA[<p class="MsoNormal"><span lang="EN-US">First of all I want answer Tom posted in /blog/feature-request/vsdoc-possibilities about importance of &#8220;-vsdoc.js&#8221; files. A lot of people misunderstand the role of &#8220;-vsdoc.js&#8221; files. Then I describe what a <strong>real</strong> problem with IntelliSense in jqGrid is and write my suggestion to fix the problem.</span></p>
<p class="MsoNormal"><span lang="EN-US">Visual Studio 2008 has built-in support for JavaScript IntelliSense. See <a href="http://weblogs.asp.net/scottgu/archive/2007/06/21/vs-2008-javascript-intellisense.aspx" rel="nofollow" target="_blank"><a href="http://weblogs.asp.net/scottgu" rel="nofollow">http://weblogs.asp.net/scottgu</a>.....sense.aspx</a> and <a href="http://blogs.msdn.com/webdevtools/archive/2007/03/02/jscript-intellisense-in-orcas.aspx" rel="nofollow" target="_blank"><a href="http://blogs.msdn.com/webdevto" rel="nofollow">http://blogs.msdn.com/webdevto</a>.....orcas.aspx</a> for example. So there is also support of IntelliSense for jqGrid. Using &#8220;-vsdoc.js&#8221; or &#8220;.debug.js&#8221; files are important mostly for released (minimized) version of js scripts.</span></p>
<p class="MsoNormal"><span lang="EN-US">Scott Guthrie in </span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx" rel="nofollow" target="_blank"><a href="http://weblogs.asp.net/scottgu" rel="nofollow">http://weblogs.asp.net/scottgu</a>.....-2008.aspx</a></span></p>
<p class="MsoNormal"><span lang="EN-US">describes what should be done to have <strong>more</strong> IntelliSense in Visual Studio 2008 with respect of vsdoc.js files. By the way, if you download jquery-1.3.2-vsdoc.js from <a href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2-vsdoc2.js" rel="nofollow" target="_blank"><a href="http://code.google.com/p/jquer" rel="nofollow">http://code.google.com/p/jquer</a>.....-vsdoc2.js</a> don&#8217;t forget rename it from jquery-1.3.2-vsdoc2.js to jquery-1.3.2-vsdoc.js.</span></p>
<p class="MsoNormal"><span lang="EN-US">The most important thing during support of <span>-vsdoc.js</span></span><strong><span style="font-size: 10pt; line-height: 115%; font-weight: normal; font-family: &#34;Arial&#34;,&#34;sans-serif&#34;;"> is installation of KB958502. But </span></strong><span lang="EN-US">IntelliSense works in Visual Studio 2008 without the patch also, if you start a JS-file with the lines</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%; font-family: &#34;Courier New&#34;; color: green;">/// &#60;reference path=&#39;~/Scripts/jquery-1.3.2-vsdoc.js&#39;/&#62;</span></p>
<p class="MsoNormal"><span lang="EN-US">Instead of</span></p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%; font-family: &#34;Courier New&#34;; color: green;">/// &#60;reference path=&#39;~/Scripts/jquery-1.3.2.js&#39;/&#62;</span></p>
<p class="MsoNormal"><span lang="EN-US">After installation of </span><strong><span style="font-size: 10pt; line-height: 115%; font-weight: normal; font-family: &#34;Arial&#34;,&#34;sans-serif&#34;;">KB958502 and adding </span></strong><span lang="EN-US">jquery-1.3.2-vsdoc.js to your Visual Studio project, you can see</span></p>
<p><a href="http://www.ok-soft-gmbh.com/images/jqGrid/1.jpg"><img src="http://www.ok-soft-gmbh.com/images/jqGrid/1.jpg" width="100"  class="sfimageleft spUserImage" alt="jqGrid IntelliSense" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p class="MsoNormal"><span><!--[if gte vml 1]><v:shapetype  id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"  path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"> <v:stroke joinstyle="miter"></v:stroke> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0"></v:f> <v:f eqn="sum @0 1 0"></v:f> <v:f eqn="sum 0 0 @1"></v:f> <v:f eqn="prod @2 1 2"></v:f> <v:f eqn="prod @3 21600 pixelWidth"></v:f> <v:f eqn="prod @3 21600 pixelHeight"></v:f> <v:f eqn="sum @0 0 1"></v:f> <v:f eqn="prod @6 1 2"></v:f> <v:f eqn="prod @7 21600 pixelWidth"></v:f> <v:f eqn="sum @8 21600 0"></v:f> <v:f eqn="prod @7 21600 pixelHeight"></v:f> <v:f eqn="sum @10 21600 0"></v:f> </v:formulas> <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></v:path> <o:lock v:ext="edit" aspectratio="t"></o:lock> </v:shapetype><v:shape id="Bild_x0020_1" o:spid="_x0000_i1028" type="#_x0000_t75"  style=&#38;#39;width:389.4pt;height:199.2pt;visibility:visible;mso-wrap-style:square&#38;#39;> <v:imagedata src="file:///C:\Users\Rita\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png" mce_src="file:///C:\Users\Rita\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"   o:title=""></v:imagedata> </v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span></p>
<p class="MsoNormal"><span lang="EN-US">and</span></p>
<p><a href="http://www.ok-soft-gmbh.com/images/jqGrid/2.jpg"><img src="http://www.ok-soft-gmbh.com/images/jqGrid/2.jpg" width="100"  class="sfimageleft spUserImage" alt="jqGrid IntelliSense" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p class="MsoNormal"><span><!--[if gte vml 1]><v:shape  id="Bild_x0020_2" o:spid="_x0000_i1027" type="#_x0000_t75" style=&#38;#39;width:387pt;  height:70.8pt;visibility:visible;mso-wrap-style:square&#38;#39;> <v:imagedata src="file:///C:\Users\Rita\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png" mce_src="file:///C:\Users\Rita\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png"   o:title=""></v:imagedata> </v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span></p>
<p class="MsoNormal"><span lang="EN-US">If one want to see more information about function&#8217;s parameters like</span></p>
<p><a href="http://www.ok-soft-gmbh.com/images/jqGrid/4.jpg"><img src="http://www.ok-soft-gmbh.com/images/jqGrid/4.jpg" width="100"  class="sfimageleft spUserImage" alt="jqGrid IntelliSense" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p class="MsoNormal"><span><!--[if gte vml 1]><v:shape  id="Bild_x0020_4" o:spid="_x0000_i1026" type="#_x0000_t75" style=&#38;#39;width:388.2pt;  height:95.4pt;visibility:visible;mso-wrap-style:square&#38;#39;> <v:imagedata src="file:///C:\Users\Rita\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png" mce_src="file:///C:\Users\Rita\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png"   o:title=""></v:imagedata> </v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span></p>
<p class="MsoNormal"><span lang="EN-US">one needs write comment inside the jqGrid functions. The format of comments is described, for example, in <a href="http://weblogs.asp.net/bleroy/archive/2007/04/23/the-format-for-javascript-doc-comments.aspx" rel="nofollow" target="_blank">http://weblogs.asp.net/bleroy/archive/2007/04/23/the-format-for-javascript-doc-comments.aspx</a> by Bertrand Le Roy. This XML comments are very close to XML Documentation Comments described in <a href="http://msdn.microsoft.com/en-us/library/b2s063f7.aspx" rel="nofollow" target="_blank">http://msdn.microsoft.com/en-us/library/b2s063f7.aspx</a>. Bertrand Le Roy wrote a tool <a href="http://www.codeplex.com/ajaxdoc" rel="nofollow" target="_blank">http://www.codeplex.com/ajaxdoc</a> I find not a real solution of the problem.</span></p>
<p class="MsoNormal"><span lang="EN-US">I find out another solution which I want to suggest Tony to include in one next version of<span>&#160; </span>jqGrid.</span></p>
<p class="MsoNormal"><span lang="EN-US">If we change the lines 63 and 64 of </span><span lang="EN-US">jqModal.js</span><span lang="EN-US">, which currently looks like</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;">i=$(<span style="color: #a31515;">&#39;&#60;iframe src=&#8221;javascript:false;document.write(\&#39;\&#39;);&#8221; class=&#8221;jqm&#8221;&#62;&#60;/iframe&#62;&#39;</span>).css({opacity:0}),</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;">e=<span style="color: blue;">function</span>(h){<span style="color: blue;">if</span>(ie6)<span style="color: blue;">if</span>(h.o)h.o.html(<span style="color: #a31515;">&#39;&#60;p style=&#8221;width:100%;height:100%&#8221;/&#62;&#39;</span>).prepend(i);<span style="color: blue;">else</span> <span style="color: blue;">if</span>(!$(<span style="color: #a31515;">&#39;iframe.jqm&#39;</span>,h.w)[0])h.w.prepend(i); f(h);},</span></p>
<p class="MsoNormal"><span lang="EN-US">to</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;">e = <span style="color: blue;">function</span>(h) {</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;"><span>&#160;&#160;&#160; </span><span style="color: blue;">if</span> (ie6) {</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">var</span> i=$(<span style="color: #a31515;">&#39;&#60;iframe src=&#8221;javascript:false;document.write(\&#39;\&#39;);&#8221; class=&#8221;jqm&#8221;&#62;&#60;/iframe&#62;&#39;</span>).css({opacity:0});</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">if</span> (h.o)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>h.o.html(<span style="color: #a31515;">&#39;&#60;p style=&#8221;width:100%;height:100%&#8221;/&#62;&#39;</span>).prepend(i);</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color: blue;">else</span> <span style="color: blue;">if</span> (!$(<span style="color: #a31515;">&#39;iframe.jqm&#39;</span>, h.w)[0])</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>h.w.prepend(i);</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>f(h);</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;"><span>&#160;&#160;&#160; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &#34;Courier New&#34;;">},</span></p>
<p class="MsoNormal"><span lang="EN-US">(we move definition of &#8220;i&#8221; inside of </span><span style="font-size: 10pt; line-height: 115%; font-family: &#34;Courier New&#34;;">e = <span style="color: blue;">function</span>(h)</span><span lang="EN-US">). Such change has sense because variable &#8220;i&#8221; will be used only if ie6 is true. Moreover, after the change of jqModal.js IntelliSense&#160; works perfectly </span><span lang="EN-US">in Visual Studio 2008 </span><span lang="EN-US">with all jqGrid files! It&#8217;s exactly what we all wants.</span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards</span></p>
<p class="MsoNormal"><span lang="EN-US">Oleg</span></p></p>
]]></description>
        	        	<pubDate>Tue, 01 Sep 2009 15:36:33 +0300</pubDate>
        </item>
</channel>
</rss>