jQuery & Visual Studio 2010 Beta

by Randall 5/29/2009 2:30:00 PM

Today I decided to check out the jQuery support within Visual Studio 2010.  I had been having difficulty in getting IntelliSense to work correctly in Visual Studio 2008 SP1 as described by Scott Guthrie here.  Turns out that VS wasn't allowing jQuery and jQuery UI to play along nicely.  If I removed the script include for jQuery UI, IntelliSense would begin functioning for jQuery as it was supposed to. However, I'm currently trying to learn both of them so I want it to work properly.

After firing up Visual Studio 2010 Beta, I created a new Web Application Project: 



By the way, you might be happy to see that the option for a website has been removed and you're now forced to choose a web application project.  Personally I'm glad to see this.

Getting back to it, I immediately went into my code behind and started typing up a script block - I didn't see anything any jQuery IntelliSense at all.  DOH.  jQuery is SUPPORTED, not PROVIDED.  After including the scripts for jQuery and jQuery UI, IntelliSense began working beautifully providing support for both.

For jQuery ...

 

... and for jQuery UI ... 

 

Currently rated 3.3 by 6 people

  • Currently 3.333333/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Powered by BlogEngine.NET 1.3.1.0
Theme by Mads Kristensen

About the author

Name of author Randall Sexton
Currently a .Net developer for Bechtel Corporation in Oak Ridge, TN.

E-mail me Send mail

Calendar

<<  April 2014  >>
MoTuWeThFrSaSu
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

View posts in large calendar

Pages

    Recent comments

    Don't show

    Authors

    Categories


    Logo Credit

    My logo was taken from CodingHorror.
    Jeff Atwood © Copyright 2007

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2014

    Sign in