<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to solve JavaScript IntelliSense problems in VS2010</title><link>http://blogs.msdn.com/b/webdev/archive/2010/11/08/how-to-solve-javascript-intellisense-problems-in-vs2010.aspx</link><description>VS2010 should support all of the VS2008 JavaScript functionalities as shown in Scott Guthrie’s VS2008 JavaScript IntelliSense blog .&amp;#160; It includes: 1. Basic type inference 2. IntelliSense from referenced external JavaScript libraries 3. IntelliSense</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to solve JavaScript IntelliSense problems in VS2010</title><link>http://blogs.msdn.com/b/webdev/archive/2010/11/08/how-to-solve-javascript-intellisense-problems-in-vs2010.aspx#10095149</link><pubDate>Mon, 22 Nov 2010 22:11:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10095149</guid><dc:creator>Earl.E.Brown</dc:creator><description>&lt;p&gt;Thanks, Damian - that did the trick! &amp;nbsp;And since our web-app is IE-only, I can just use the file-path syntax, and it&amp;#39;s coverted by the browser...no asp tricks needed. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the tip!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10095149" width="1" height="1"&gt;</description></item><item><title>re: How to solve JavaScript IntelliSense problems in VS2010</title><link>http://blogs.msdn.com/b/webdev/archive/2010/11/08/how-to-solve-javascript-intellisense-problems-in-vs2010.aspx#10092985</link><pubDate>Thu, 18 Nov 2010 05:21:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10092985</guid><dc:creator>Damian Edwards</dc:creator><description>&lt;p&gt;theGleep@work - The issue in your case is you&amp;#39;re using URL travesal syntax (forward slashes) to try and find a file path. If you change it to use backslashes IntelliSense will work, but you don&amp;#39;t really want that to be rendered to the browser. You can get the &amp;quot;best&amp;quot; of both worlds doing something like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;% if(false) { %&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;..\..\Scripts\shared.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;% } else { %&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;../../Scripts/shared.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;% } %&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;// IntelliSense for stuff in shared.js works fine here now&lt;/p&gt;
&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10092985" width="1" height="1"&gt;</description></item><item><title>re: How to solve JavaScript IntelliSense problems in VS2010</title><link>http://blogs.msdn.com/b/webdev/archive/2010/11/08/how-to-solve-javascript-intellisense-problems-in-vs2010.aspx#10092955</link><pubDate>Thu, 18 Nov 2010 02:34:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10092955</guid><dc:creator>Damian Edwards</dc:creator><description>&lt;p&gt;theGleepWork - The issue with your exapmle is your trying to traverse a folder path using URL notation (forward slashes). If you change your src path to use back slashes, IntelliSense works. However this might cause you problems at runtime. You can get the &amp;quot;best&amp;quot; of both worlds by doing something like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;% if(false) { %&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;..\..\Scripts\shared.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;% } else { %&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;../../Scripts/shared.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;% } %&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;// IntelliSense for stuff in shared.js works fine here now&lt;/p&gt;
&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10092955" width="1" height="1"&gt;</description></item><item><title>re: How to solve JavaScript IntelliSense problems in VS2010</title><link>http://blogs.msdn.com/b/webdev/archive/2010/11/08/how-to-solve-javascript-intellisense-problems-in-vs2010.aspx#10092808</link><pubDate>Wed, 17 Nov 2010 20:25:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10092808</guid><dc:creator>Earl.E.Brown</dc:creator><description>&lt;p&gt;I have an odd setup (because I don&amp;#39;t do things &amp;quot;normal&amp;quot;) that&amp;#39;s causing me to not have intellisense that I&amp;#39;d LOVE to have. &amp;nbsp;I can work around it in .js files, but the &amp;lt;script...&amp;gt; tag in .html doesn&amp;#39;t work right for me.&lt;/p&gt;
&lt;p&gt;What works:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;script src=&amp;quot;d:\Company\scripts\SharedScript.js&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;what doesn&amp;#39;t work:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;when editing &amp;quot;d:\Company\MyProjects\MyApp\MySite\MyPage.htm&amp;quot;, using:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;script src=&amp;quot;../../scripts/SharedScript.js&amp;quot;&amp;gt;, &lt;/p&gt;
&lt;p&gt;The *reason* this isn&amp;#39;t working is because I actually have two projects (&amp;quot;existing web sites&amp;quot;) in the solution:&lt;/p&gt;
&lt;p&gt;the project &amp;quot;d:\Company\Scripts&amp;quot; manages scripts that are shared amongst multiple developers,&lt;/p&gt;
&lt;p&gt;and &amp;quot;d:\Company\MyProjects&amp;quot; manages my personal collection of responsibilities.&lt;/p&gt;
&lt;p&gt;So, the relative path from &amp;quot;D:\Company\MyProjects\MyApp\MySite&amp;quot; fails because the relative path traces to a folder before the projects &amp;quot;base folder&amp;quot;&lt;/p&gt;
&lt;p&gt;I have a couple of options I&amp;#39;d like to see to allow fixing this, but I&amp;#39;m sure you all can come up with your own, as well:&lt;/p&gt;
&lt;p&gt;* When in the editor, treat relative paths as relative *on the filesystem* instead of *in the project&amp;quot; (maybe make this a configuration option?)&lt;/p&gt;
&lt;p&gt;* Allow [/// &amp;lt;reference path=&amp;quot;d:\Company\Scripts\SharedScript.js&amp;quot;/&amp;gt;] within a &amp;lt;script&amp;gt; tag:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;script language=&amp;quot;javascript&amp;quot; type=&amp;#39;text/javascript&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;/// &amp;lt;reference path=&amp;quot;d:\Company\Scripts\SharedScript.js&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;var testIntellisense = external.fromShared.doSomething();&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;* Add a &amp;quot;reference&amp;quot; attribute to the &amp;lt;script src=&amp;quot;&amp;quot;&amp;gt; tag:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;script src=&amp;quot;../../scripts/SharedScript.js&amp;quot; reference=&amp;quot;d:\Company\Scripts\SharedScript.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;* Add a configuration option for the javascript editor that pre-loads javascript files for intellisense&lt;/p&gt;
&lt;p&gt; &amp;nbsp;(I can see how this might cause other problems, though - like &amp;quot;what happens when the included script is the same as the pre-loaded script?&amp;quot; &amp;nbsp;... but I&amp;#39;m sure there are options to resolve that.)&lt;/p&gt;
&lt;p&gt;OK...enough of me rambling. &amp;nbsp;If anybody would like to get in touch with me, please e-mail! &amp;nbsp;(I&amp;#39;ll check back here to see if there&amp;#39;s feedback here, as well.)&lt;/p&gt;
&lt;p&gt;Thanksf or the patience to read all this! &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10092808" width="1" height="1"&gt;</description></item></channel></rss>