Tuesday, June 16, 2009

ASP.NET, jQuery and Intellisense

Visual Studio and jQuery

Microsoft has partnered with jQuery and because of that, Visual Studio will now include jQuery; if you have downloaded the latest version of ASP.NET MVC, you should find that jQuery was included although it is version 1.2.6 (the current version is 1.3.2).

jQuery is a JavaScript framework that is comprehensive in its current form and constantly improving; the jQuery community has developed a number of terrific plug-ins that continually make the kit more attractive, valuable, and useful; it you have not tried it out, it is definitely worth looking into. As far as the plug-ins go, the tablesorter and tablesorter pager really make the whole thing worthwhile if you are working with MVC at all; I think it is a far better solution than using the paged list option demonstrated in the latest "Nerd Dinner" application made available by Guthrie, Hanselman, Haack, et al., if for no other reason than it handles both paging and sorting rather than just sorting. Other plug-ins also support filtering lists such that if you wanted to display a filtered, sorted, paged list, you can do that with jQuery in a few lines of code, or you can spend quite a bit more time trying to accomplish the same thing in the controller and model code in an MVC application.

There is a lot to love about jQuery; the selectors alone will save a lot time in selecting single or categorized elements without fumbling around with the DOM. To quote the blurb about the project found on their website, jQuery, "...is a new kind of JavaScript Library. jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript".

See full detail: http://www.vbdotnetheaven.com/UploadFile/scottlysle/jQueryIntellisenseVB03282009191200PM/jQueryIntellisenseVB.aspx

No comments: