Ales Rosina's blog

shelastyle.net
Subscribe

jQuery Project Template for Visual Studio



 
jQuery Summit 2009

Recently I wanted to create a couple of websites, more precisely, AJAX websites with a lot of animation and calls to (external) web services. So basically, I needed an HTML page with included jQuery library and support for IntelliSense. No need for ASP.NET or any other server side stuff, like data access, MVC etc.
Since I wanted to reuse this project template, I created my own Visual Studio template – jQuery Project. Creating a template is very simple, if you’re interested in it,  here you can find very well written article about it by Rick Strahl.

In this template you have one HTML file with a jQuery script tag included and a MyScript.js file with a little trick to enable IntelliSense in an external javascript file:

/// <reference path="http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.1-vsdoc.js"/>


We are referencing to Microsoft’s host servers, thus decreasing latency, increasing parallelism and enabling better caching. Read more on the subject in this great article on Encosia.

That’s all you need to develop with jQuery in Visual Studio. Download this template here.

Reblog this post [with Zemanta]
Bookmark and Share
author: Aleš Rosina | Comments: 3 |
03
March
2010

 
Clarendon on 14. July 2010 at 10:28

Thanks for the template, I'll give it a go and let you know how I get on

jeu de tarot on 16. July 2010 at 02:09

I will test it, i bookmark this page and come in a few day to give you a feedback !

free cam chat on 16. July 2010 at 08:50

I love the template and would give it a A++, have used it on two projects so far!

Leave a Comment

Name:
Email:
I respect your privacy, so your email is never published.
Web site: