Reputation: 67380
Following on from this question (that I asked) and this question (that Simon asked), is there a CDN that provides the jQuery script AND the -vsdoc version side-by-side?
e.g. Google provide:
http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
but don't provide
http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min-vsdoc.js
Does Microsoft have a CDN for jQuery?
Upvotes: 9
Views: 4037
Reputation: 473
Guy & Juri-- in VS2010 this works to get jQuery Intellisense off the MS CDN:
<script>
/// <reference path="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5-vsdoc.js"/>
</script>
Just stick that into your <head/> in the .aspx page and it should work.
Upvotes: 4
Reputation: 5588
You do not need to link to the file in the traditional sense. Download the vsdoc file and put this at the top of your JS file (assumes vsdoc is in the same folder as your JS file):
/// <reference path="jquery-1.4.1-vsdoc.js" />
Upvotes: 1
Reputation: 22176
Update: jQuery now also hosts the code on a CDN and this includes the VSDOC versions. These links are available from the jQuery downloads page.
eg http://code.jquery.com/jquery-1.4.1-vsdoc.js
Upvotes: 3
Reputation: 904
Note that on the Microsoft CDN, the jquery-1.3.2-vsdoc.js and jquery-1.3.2.min-vsdoc.js files are the same size. Avoid the min-vsdoc version - it's not minified at all, so the name is misleading.
Upvotes: 1
Reputation:
Yes, Microsoft has a CDN that hosts both jQuery and the vsdoc Intellisense for jQuery. You can learn more at http://www.asp.net/ajax/cdn/
Upvotes: 15