jQuery and Visual Studio
jQuery and Visual Studio
Microsoft has announced that it’s going to make jQuery part of the Visual Studio and use it within ASP.Net AJAX framework and ASP.Net MVC framework. Not only that, Microsoft will also provide a free download for VS 2008 SP1 which would provide intellisense to jQuery within visual studio. For more info on this annoucement refer to the links below
The best bit is that Microsoft is going to provide jQuery unchanged as it is. This means that even if Microsoft changes any of the code, it would submit a patch to jQuery like anyone else.
jQuery
For the ones new to jQuery, jQuery is a lightweight open source Javascript library similar to Prototype and YUI. It allows you to easily find and manipulate HTML elements with minimum lines of code. jQuery uses an interesting concept “Chainability” to make its code short and simple. jQuery has the following features,
- DOM element selections
- DOM traversal and modification
- Events
- CSS manipulation
- Effects and animations
- Ajax
- Extensibility
- Utilities – such as browser version and the each function
- JavaScript Plugins – Tablesorter
jQuery Basics
Once we include the jQuery js file(downloaded from jQuery) as below, we could start using the funtions within jQuery.
-
$(“a”).click(function(event){
-
alert(“Hello World!”);
-
});
-
$(“#btnHello”).click(function(event){
-
alert(“Hello World!”);
-
});
[...] have been using jQuery extensively these days since Microsoft announced the support