jQuery and Microsoft

jQuery is a lightweight open source JavaScript library (only 15kb in size) that in a relatively short span of time has become one of the most popular libraries on the web.

A big part of the appeal of jQuery is that it allows you to elegantly (and efficiently) find and manipulate HTML elements with minimum lines of code.  jQuery supports this via a nice "selector" API that allows developers to query for HTML elements, and then apply "commands" to them.  One of the characteristics of jQuery commands is that they can be "chained" together - so that the result of one command can feed into another.  jQuery also includes a built-in set of animation APIs that can be used as commands.  The combination allows you to do some really cool things with only a few keystrokes.

For example, the below JavaScript uses jQuery to find all <div> elements within a page that have a CSS class of "product", and then animate them to slowly disappear:

As another example, the JavaScript below uses jQuery to find a specific <table> on the page with an id of "datagrid1", then retrieves every other <tr> row within the datagrid, and sets those <tr> elements to have a CSS class of "even" - which could be used to alternate the background color of each row:

[Note: both of these samples were adapted from code snippets in the excellent jQuery in Action book]

Providing the ability to perform selection and animation operations like above is something that a lot of developers have asked us to add to ASP.NET AJAX, and this support was something we listed as a proposed feature in the ASP.NET AJAX Roadmap we published a few months ago.  As the team started to investigate building it, though, they quickly realized that the jQuery support for these scenarios is already excellent, and that there is a huge ecosystem and community built up around it already.  The jQuery library also works well on the same page with ASP.NET AJAX and the ASP.NET AJAX Control Toolkit.

Rather than duplicate functionality, we thought, wouldn't it be great to just use jQuery as-is, and add it as a standard, supported, library in VS/ASP.NET, and then focus our energy building new features that took advantage of it?  We sent mail the jQuery team to gauge their interest in this, and quickly heard back that they thought that it sounded like an interesting idea too.

Supporting jQuery

I'm excited today to announce that Microsoft will be shipping jQuery with Visual Studio going forward.  We will distribute the jQuery JavaScript library as-is, and will not be forking or changing the source from the main jQuery branch.  The files will continue to use and ship under the existing jQuery MIT license.

We will also distribute intellisense-annotated versions that provide great Visual Studio intellisense and help-integration at design-time.  For example:

and with a chained command:

The jQuery intellisense annotation support will be available as a free web-download in a few weeks (and will work great with VS 2008 SP1 and the free Visual Web Developer 2008 Express SP1).  The new ASP.NET MVC download will also distribute it, and add the jQuery library by default to all new projects.

We will also extend Microsoft product support to jQuery beginning later this year, which will enable developers and enterprises to call and open jQuery support cases 24x7 with Microsoft PSS.

Going forward we'll use jQuery as one of the libraries used to implement higher-level controls in the ASP.NET AJAX Control Toolkit, as well as to implement new Ajax server-side helper methods for ASP.NET MVC.  New features we add to ASP.NET AJAX (like the new client template support) will be designed to integrate nicely with jQuery as well. 

We also plan to contribute tests, bug fixes, and patches back to the jQuery open source project.  These will all go through the standard jQuery patch review process.

Summary

We are really excited to be able to partner with the jQuery team on this.  jQuery is a fantastic library, and something we think can really benefit ASP.NET and ASP.NET AJAX developers.  We are looking forward to having it work great with Visual Studio and ASP.NET, and to help bring it to an even larger set of developers.

For more details on today's announcement, please check out John Resig's post on the jQuery team blog.  Scott Hanselman is also about to post a nice tutorial that shows off integrating jQuery with ASP.NET AJAX (including the new client templating engine) as well as ADO.NET Data Services (which shipped in .NET 3.5 SP1 and was previously code-named "Astoria").

Hope this helps,

Scott

Published Sunday, September 28, 2008 11:32 AM by ScottGu

Comments

# re: jQuery and Microsoft

Sunday, September 28, 2008 2:43 PM by Chad Myers

This is simply amazing!  Thank you very much for doing this. We use ASP.NET and jQuery and pine for better jQuery IntelliSense support in VS. Wow... just wow!

# re: jQuery and Microsoft

Sunday, September 28, 2008 2:45 PM by Dave Ward

Best news I've heard in months!  Kudos to whoever made this happen.

# re: jQuery and Microsoft

Sunday, September 28, 2008 2:48 PM by Brian Chavez

About time!  MS is moving in the right direction.  The same kind of decision should have been with NHibernate with regard to EF. :(

# re: jQuery and Microsoft

Sunday, September 28, 2008 2:51 PM by Chris Sutton

This is really exciting. I never expected to see an open source library show up in a Microsoft product.

Good choice.

Chris Sutton

# re: jQuery and Microsoft

Sunday, September 28, 2008 2:55 PM by Rune Juhl-Petersen

Wow. I never thought I would see this. This is the first open source project that was supported instead of dublicated by MS. Keep it up, you are on track now! :)

# re: jQuery and Microsoft

Sunday, September 28, 2008 2:57 PM by Chris Hardy (ChrisNTR)

Top notch stuff, Can't say too much more about this apart from that it's fantastic news!

# re: jQuery and Microsoft

Sunday, September 28, 2008 2:57 PM by David Pellerin

Great news, Scott!  Things are moving in the right direction.  Exciting times.

# re: jQuery and Microsoft

Sunday, September 28, 2008 3:02 PM by Nairb

What are you doing to get around the existing conflict of both the MS Ajax library and jQuery using $ as shorthand?

This is absolutely fantastic news.

# re: jQuery and Microsoft

Sunday, September 28, 2008 3:08 PM by Adam Tybor

Awesome!  As Chad says, AMAZING.  I can't believe what I am reading.  MS is going to use an existing unmodified oss project!  I am speechless.  Scott, given where the .net community was 3 years ago, the work you have done to help bolster a more open and cooperative .Net community lead by Microsoft is unprecedented.  I hope we can continue to see more announcements like this and continue see more open projects like Ironruby and Asp.Net MVC coming out Redmond.  

# re: jQuery and Microsoft

Sunday, September 28, 2008 3:14 PM by Rachit

Wow...this is huge... Kudos for both, jQuery & Microsoft. Life (of the developers) will be a little better. :)

# re: jQuery and Microsoft

Sunday, September 28, 2008 3:15 PM by Jesper Eiby

This is just what I needed.

And I'm very excited that it's going to happen.

Thank you!

# re: jQuery and Microsoft

Sunday, September 28, 2008 3:15 PM by Joe Chung

I have to be honest.  I did a date check vs. April 1 in my head before I finished reading this post.

Wow, this is FANTASTIC news!  I can't wait to tell the guys on the homepage team about this. :)

# re: jQuery and Microsoft

Sunday, September 28, 2008 3:22 PM by Andy

Scott,

I think this is just such incredibly good news for ASP.NET developers.  I'm posting from the jQuery conference in Boston and I can tell you that this announcement is making all the ASP.NET folks here super happy today.

Andy

# re: jQuery and Microsoft

Sunday, September 28, 2008 3:28 PM by Peter O

This sounds like great news. Ordinarily, I would have been extatic. I was but it lasted about 5 min. Then, I remembered history.

But just so we are clear: You are committing to us that MSFT will not "be forking or changing the source from the main jQuery branch" and you will "go through the standard jQuery patch review process" for tests, bug fixes and patches.

As you can see, jQuery just managed to restore sanity to the browser DOM madness introduced by none other than Microsoft. We don't want this move to transform into "how jQuery became browser specific again".

Remember T-SQL, Java, Mozilla (IE)

# re: jQuery and Microsoft

Sunday, September 28, 2008 3:34 PM by Yulian Slobodian

This is REALLY GREAT move!

Big thanks for all who made this tandem real

and WOW =)

# re: jQuery and Microsoft

Sunday, September 28, 2008 3:36 PM by benhart

Very exciting times indeed. I'm simultaneously ecstatic and relieved to see this shift to "openness" from MS, and thank you and all others that are making it happen. Keep it up!

# re: jQuery and Microsoft

Sunday, September 28, 2008 4:00 PM by Jeremy

I'm really impressed that Microsoft pursued this course.  

# re: jQuery and Microsoft

Sunday, September 28, 2008 4:26 PM by liammcmullen

good work Scott - this is the microsoft we need!

# re: jQuery and Microsoft

Sunday, September 28, 2008 4:30 PM by Rick Strahl

This is awesome news. Does this also mean that MS AJAX 4.0 going forward is going to use jQuery to avoid duplication of functionality?

Either way this is great. To me jQuery has easily  the most game changing component in Web Development since ASP.NET originally was released.

# re: jQuery and Microsoft

Sunday, September 28, 2008 4:30 PM by Adam

F**king Excellent news! Good to see Microsoft adapting to the community and moving towards a standard web!

# re: jQuery and Microsoft

Sunday, September 28, 2008 4:31 PM by brainopia

Jquery have deserved to be recognized among top players =)

# re: jQuery and Microsoft

Sunday, September 28, 2008 4:34 PM by Ajay Bhosale

This is first example that Microsoft respected open source solutions and created partnership with them, hope the trend goes on.

Scott, Please pick more tools and practices from Alt .net space too.

Regards,

Ajay

# re: jQuery and Microsoft

Sunday, September 28, 2008 4:34 PM by Joel

This is great Scott!  jQuery is great...I've been using it for a while now and have wished that it was more integrated into asp.net ajax.  Your team has obviously been busy.  Thanks for making things easier on the dev community.  BTW...Silverlight 2 can't come soon enough!

# re: jQuery and Microsoft

Sunday, September 28, 2008 4:37 PM by Tyrven

I'm curious to hear how Microsoft will address points of overlap between the ASP.NET AJAX Library and jQuery.  In many way, jQuery is a natural complement to ASP.NET AJAX, providing Roadmap features such as CSS selectors.  In other ways, it provides its own distinct methods for retreiving AJAX data, handling events and (with jQuery UI) extending controls.  I see that you'll be integrating it with the AJAX Control Toolkit which I assume will address the overlap with jQuery UI - but what about other features?  Will Microsoft support both?  Deprecate the existing ASP.NET AJAX approach?  Or will you allow both, but encourage the Microsoft methods?

# re: jQuery and Microsoft

Sunday, September 28, 2008 4:48 PM by Matt Watson

This is a great addition to ASP.NET!

# re: jQuery and Microsoft

Sunday, September 28, 2008 4:52 PM by Barry Dahlberg

Great news, good to see MS recognising some of the existing work out there.

# re: jQuery and Microsoft

Sunday, September 28, 2008 4:58 PM by cmv

Now convince the IE team to use WebKit or Mozilla as their rendering engine and Microsoft will have finally be caught up to everyone else. Shocking decision, great job.

# re: jQuery and Microsoft

Sunday, September 28, 2008 5:13 PM by Agus Suhanto

Interesting. I'm just curious how Microsoft will position it against current Microsoft Ajax library? Hanselman said that it will be complementary but, I think there are a lot of similar functionalities that are implemented differently between the two. Will Microsoft recommend to use either one for some specific scenario? or just up to the reader to select it?

# re: jQuery and Microsoft

Sunday, September 28, 2008 5:19 PM by Andy

A great decision. I suppose it's not a huge risk, say on the selectors front, as that may come to HTML 5 any way. But as I use jQuery for all current client side work, it is a very welcome piece of news.

# re: jQuery and Microsoft

Sunday, September 28, 2008 5:30 PM by James Avery

I never thought I would see the day, this is so freaking awesome!

# re: jQuery and Microsoft

Sunday, September 28, 2008 5:37 PM by anas

Good , But we still not familiar with Microsoft Ajax library :) , also adding more libraries will add more JavaScript files to the website ,because if i want to use the calendar extender with some jQuery stuff, i need to include Microsoft Ajax library and calendar script files and now jQuery scripts !

# re: jQuery and Microsoft

Sunday, September 28, 2008 6:22 PM by Steve

Happy Happy Joy Joy - or yippee!

This is best news I've heard in awhile - and from my experience: it works great with asp.net mvc  :)

# re: jQuery and Microsoft

Sunday, September 28, 2008 6:28 PM by AmrElsehemy

Best news this year

# re: jQuery and Microsoft

Sunday, September 28, 2008 6:30 PM by Peter

WOW! I like this openness more and more... keep it up.

# re: jQuery and Microsoft

Sunday, September 28, 2008 6:34 PM by Ben

Wow. This is a really exciting announcement. Maybe I'll finally be able to persuade my co-workers to use jQuery!

# re: jQuery and Microsoft

Sunday, September 28, 2008 6:43 PM by Mike

Great news, and a good choice. Also good to see that Microsoft is not afraid to include open source software in its product. That wasn't always the case, and I wonder how hard this was to sell internally, is the legal team feeling alright?

One thing though, jQuery is a moving target, it releases more often than Visual Studio. Will Microsoft provide up to date annotated versions?

Thanks!

# re: jQuery and Microsoft

Sunday, September 28, 2008 6:47 PM by janne aho

This is fantastic!

# re: jQuery and Microsoft

Sunday, September 28, 2008 6:48 PM by HeartattacK

Wow...I mean WOW!!

I really really like the way MS is going about the dev divission of late. Instead of being the dark empire, you're getting the community involved. When I first saw the roadmap, I thought..."Hang on - a lot of it is what jquery does. Why are they replicating a lot of things? Knowing MS, you'd think MS would just 'buy' jquery. Still, it's a positive move...at least I can code in a manner I really like." Now, instead of buying, you're joining the jquery effort - making it even better for asp.net devs. This plays so nicely with the ecosystem. I can't imagine any better way you could've played this. Awesome. Well done. Bravo. Thanks you...Really...can't say it enough.

Now...what does that mean for asp.net MVC and AJAX? Is jquery now the "official" way to do AJAX? One thing I'd really like to see is ModelBinders working with AJAX...I haven't tried it yet, (still eagerly waiting for your Guness' much awaited post - on Sunday?) and client templates look a good way to achieve it. Just wondering if there's a way model binders would work for AJAX just the way they do for full postbacks (or "POST" requests to the page to be a purist ;)...

# re: jQuery and Microsoft

Sunday, September 28, 2008 6:51 PM by Cihan Ucar

This is one the greatest news I have heard from Microsoft side since long time. I and my developers, we are big fans of JQuery. It will be great to see it in action, with more widgets, plugins and official support. Great choice Microsoft!

# re: jQuery and Microsoft

Sunday, September 28, 2008 6:58 PM by Juliano Oliveira

Very very GOOD Notice.

A next step: John Resig working in Microsoft team.

[]´s

# re: jQuery and Microsoft

Sunday, September 28, 2008 7:42 PM by Emad

Simply - AWESOME.  Next on the list - mbunit?  moq?  Ninject?

# re: jQuery and Microsoft

Sunday, September 28, 2008 8:04 PM by benb

Great news! However, why lock in with jquery? In particular, will there be support for the just as largely used Prototype or others?

Will this cause any issue with the use of other libs like Prototype?

# re: jQuery and Microsoft

Sunday, September 28, 2008 8:33 PM by Peter

I am so glad you guys are doing this. When MS insists on writing everything themselves, we miss out on all the cool stuff that is taking place in the web development community, we have to wait longer for it and when it comes it's YAATODW (Yet another api to deal with). So please keep this up :)

# re: jQuery and Microsoft

Sunday, September 28, 2008 8:58 PM by secretGeek.net

(picks self up from floor).

Awesome, His Guness, just awesome.

# re: jQuery and Microsoft

Sunday, September 28, 2008 9:15 PM by Matt Hinze

This is so cool.  Awesome work.

# re: jQuery and Microsoft

Sunday, September 28, 2008 9:35 PM by Thushan Fernando

WOW excellent news for everyone!!! This is huge and most appreciated!

# re: jQuery and Microsoft

Sunday, September 28, 2008 9:49 PM by aswad32

this is the best, jQuery is my favorite javascript framework, great work

# re: jQuery and Microsoft

Sunday, September 28, 2008 9:56 PM by Jim Greco

Wow, I'm very impressed.

Does this mean the VS team is interested in integrating other best of breed products such as NUnit, NANT, CruiseControl.NET?

# re: jQuery and Microsoft

Sunday, September 28, 2008 10:01 PM by Roc1

Thank you for partnering with an open source project like JQuery. This is GREAT news!  I hope the trend continues at Microsoft.

# re: jQuery and Microsoft

Sunday, September 28, 2008 10:02 PM by David Hayden

This is interesting. I wonder if other teams at Microsoft will follow-suit and embrace third party tools and libraries as opposed to building something from scratch on their own. Most of the time the teams seem to be afraid of singling out a particular produt over another and would rather build their own, which can often be less feature-rich.

This open-mindedness really helps the developer community flurish and things just happen much quicker.

Kudos to you and your teams on such a bold and unexpected move.

Regards,

Dave

# re: jQuery and Microsoft

Sunday, September 28, 2008 10:11 PM by chanva

We are using jQuery, I like jQuery. This's a very great news for me.

# re: jQuery and Microsoft

Sunday, September 28, 2008 11:02 PM by Craig

I'm skeptical... the MIT license makes it very easy for MS to "embrace, extend, and extinguish" jquery as we all know and love it. For example, I see the progression as follows:

1) MS promises to stick with stock jquery and submit patches as everyone else

2) MS says that jquery isn't accepting their patches fast enough, so they need to maintain a slightly modified branch (hmm, perhaps for Intellisense?)

3) Time passes... MS's patches make their version of jquery slowly grow apart form the "real" jquery

4) "Accidentally" MS jquery has a few bugs in non-IE browsers. MS promises to fix it in the next release - which ends up being delayed again and again... so non-IE users are left out in the cold.

5) The jquery lib is "compressed" for speed (of course), and everyone accepts this... effectively making the source code much harder to read/access

6) The download link for the source "accidentally" breaks... repeatedly.

7) End state! jquery has been branched by MS, the source has been closed (completely legally), the original community decimated, and jquery only works on IE. And all the while, MS looks good for having used and supported "open source" software.

"So this is how liberty dies, to the sound of thunderous applause"

# re: jQuery and Microsoft

Sunday, September 28, 2008 11:09 PM by Stephen Cornwell

This is outstanding news. It's great to see Microsoft embracing such an excellent framework rather that trying to reinvent the wheel. It's also great to see you wont be branching jQuery - Embrace without the Extend! I second your opinion on the book "jQuery in Action", unquestionably the required read on this subject.

Cheers

# re: jQuery and Microsoft

Sunday, September 28, 2008 11:19 PM by MikeGale

This is very good news.

I'm using jQuery and put my own intellisense support into the latest version (in a few minutes using a diff tool).  Results are not as good as I'd like, so I'm delighted to see that you are going to release something better.

# re: jQuery and Microsoft

Monday, September 29, 2008 12:01 AM by Pilotbob

Sweet. To bad you guys didn't do this with NHibernate rather than spending all that time and resources to develop two separate OR/M libraries. Sigh.

BOb

# re: jQuery and Microsoft

Monday, September 29, 2008 12:11 AM by zbr

very happy to hear this news.

thanks

# re: jQuery and Microsoft

Monday, September 29, 2008 12:18 AM by shiju

This is really GREAT NEWS.

Congrats for the decision.

# re: jQuery and Microsoft

Monday, September 29, 2008 12:37 AM by John

This is REALLY awesome! Thanks for embracing such an awesome framework!

# re: jQuery and Microsoft

Monday, September 29, 2008 1:06 AM by Madhur

This is simply exciting stuff...

# re: jQuery and Microsoft

Monday, September 29, 2008 1:09 AM by Anoj Kumar

Great News .. hope Microsoft will continue to add more tools and libraries like(jQuery) in near future.

# re: jQuery and Microsoft

Monday, September 29, 2008 1:54 AM by Krunal

that's gr8...

this is what the web developers want.

# re: jQuery and Microsoft

Monday, September 29, 2008 2:24 AM by a worried developer

Well, in addition to whay Graig said, I'm afraid of jQuery colliding with other js framework you might be using, as it is my case.

We develop asp.net ajax applications with mootools, so i hope i'll be able to "swith off" jquery and still use mootools framework with its $ command and more...

# re: jQuery and Microsoft

Monday, September 29, 2008 2:33 AM by David Luu

Great news and smart decision by Microsoft.  Why try to reinvent such an excellent and superior framework.  I'm looking forward to using the jQuery intellisense.

# re: jQuery and Microsoft

Monday, September 29, 2008 2:36 AM by Mukul Sabharwal

OMG! This is like the most bewilderingly amazingly stupendious news i've heard in 2008. F'ing fantastic.

# re: jQuery and Microsoft

Monday, September 29, 2008 2:55 AM by Paul Irvine

Wow, this has to be one of the best things to come out on ASP.NEY yet. I've been playing with the various Javascript libraries, including Prototype, but to have a ASP.NET designed to work with a standard library is fantastic news.

# re: jQuery and Microsoft

Monday, September 29, 2008 3:12 AM by Gruby

It is really great idea!

# re: jQuery and Microsoft

Monday, September 29, 2008 3:24 AM by Matt

Glad you chose jQuery - scriptaculous doesn't usually play nice with .NET and other third-party controls.  Will it be jQuery as-is, or jQuery plus some helper functions?  Most importantly, something that allows us to access elements by the ClientID, instead of having to view source and find out what the .NET-mangled ID is for any runat=server tags?

# re: jQuery and Microsoft

Monday, September 29, 2008 3:36 AM by Steve

Did someone bring Christmas forward?

I've been moving away from MS for some time now because they always seem to want to 'roll their own' xyz technologies when there are usually plenty of well supported open source solutions out there, jQuery being a classic example and a library I already use with VS, so this is very welcome news.

# re: jQuery and Microsoft

Monday, September 29, 2008 3:36 AM by koistya

That is really great news. jQuery is my favorite .js livrary and adding VS support will give even more value to it. Thanks guys for making such decision.

# re: jQuery and Microsoft

Monday, September 29, 2008 3:49 AM by Stilgar

You are my heroes. Congratulations for resisting the greatest temptation for every open source project - forking. In my opinion forking is what holds open source back. I hope you stay on that position in the future.

# re: jQuery and Microsoft

Monday, September 29, 2008 3:54 AM by Tomte

One tiny step in the right direction. Now all we need is for the IE-group to switch renderer to Webkit or Gecko!

# re: jQuery and Microsoft

Monday, September 29, 2008 4:34 AM by jgd12345

Hi, this sounds great but i have a few questions:

1. Will the jquery library automatically get added to the page when we place a script manager on the page?

2. Where will the library be hosted? would this point to a third party place?  Google hosts the jquery library which keeps the same library in the browser cache across all sites that utilize it.  It would be great to see microsoft do the same with both jquery and asp.net ajax.  Maybe a property on the script manager would give the user an option of doing this.

3. If microsoft is going to utilize the features of jquery in asp.net ajax then will some of the balk of asp.net ajax be removed or changed to call the jquery alternatives (to be backwards compatible), ie things like $get(...) to $(...) and Sys.Net.WebserviceProxy.invode(...) to $.ajax(...) etc.

4. How are you going to handle support for different versions of the library within visual studio.

5. Are we still going to be building asp.net ajax server controls in the same way?  I prefer this method over jquery plugins.  

6. What will happen to some of the duplicated stuff in the ajax control toolkit?  For example the animation extender.

I like the way the asp.net ajax library is going.  By utilizing the features of jquery and with the proposed features (client templates, client dataview control) and some of the existing features it all compliments each other really well and can be very powerful.

# re: jQuery and Microsoft

Monday, September 29, 2008 5:03 AM by Jakub

I love this. Hey devs, let's enjoy the ride!

# re: jQuery and Microsoft

Monday, September 29, 2008 5:16 AM by PaulBlamire

awsome news, thanks to everyone who made this happen :-)

# re: jQuery and Microsoft

Monday, September 29, 2008 5:44 AM by Dave

Hei, that's amazing news! Congratulations on this excellent decision! jQuery is really great and that combined with ASP.NET (especially MVC) is marvelous.

# re: jQuery and Microsoft

Monday, September 29, 2008 5:46 AM by Russ Painter

Freakin aweseome!  Great move.  Focus on your bits, and accept the community standards.

# re: jQuery and Microsoft

Monday, September 29, 2008 6:11 AM by PhilipTheDuck

Great news, but what about JQuery UI? Is that officially a separate library, so it won't be included, or do you see it as part of JQuery and you will be including it?

JQuery UI is still fairly immature, but already overlaps quite a bit with some ASP.NET AJAX UI widgets, and will do so more and more as it develops. What plans does MS have, if any, for JQuery UI?

# re: jQuery and Microsoft

Monday, September 29, 2008 6:17 AM by Richard

Excellent news! This is another reason why Scott should be put in charge at Microsoft. With the new MVC work and the change in direction for developing new technologies while respecting standards you guys are doing a great job. Please can we never go back to the old ways of new product development, acting like a 10 tonne gorilla with a blind fold on stomping all over good practice.

# re: jQuery and Microsoft

Monday, September 29, 2008 7:02 AM by rajuneo

its interesting to .net devs that jQuery will be tied to vs.net. Great news and I will enjoy looking forward

# re: jQuery and Microsoft

Monday, September 29, 2008 7:26 AM by Rick Kierner

You have no idea how much easier this makes JQuery to sell to my clients.  Having MS backing without MS ownership is an awesome solution.

# re: jQuery and Microsoft

Monday, September 29, 2008 8:41 AM by Rob Bihun

This is really exciting! I can't wait to tryout the download in a few weeks!

# re: jQuery and Microsoft

Monday, September 29, 2008 9:10 AM by CLaFollett

This is simply fantastic news. Our team were already making extensive use of jQuery along side MVC in our latest project. This news confirms that we were on the right track. Thanks Scott G and the rest of the MS groups responsible for OK'ing this decision. It was the right thing to do and the entire web development community as a whole will only benefit from this.

# re: jQuery and Microsoft

Monday, September 29, 2008 9:18 AM by powtac@gmx.de

I hope MS wont touch the source ;)

# re: jQuery and Microsoft

Monday, September 29, 2008 9:24 AM by Tim

This is the best thing MSFT could do for their ASP AJAX!

jQuery rocks and has been great to use with PHP, but

with MSFT adopting it, it's going to skyrocket the web,

Even more than it already has in the Open Source Community!

Great job MSFT!

# re: jQuery and Microsoft

Monday, September 29, 2008 9:28 AM by shailatlas

Hello Scott,

I really found jQuery great for few very small tasks. I hope there can be a new section in "Learn" of ASP.Net web site for using jQuery with ASP.Net. May be some videos and some tutorials. Please do remember that still there are so many people using VS 2005 and ASP.Net 2.0.

May be you can keep this section open for all, like I have developed something with jQuery and I can submit it there.

Thanks

# re: jQuery and Microsoft

Monday, September 29, 2008 9:56 AM by Oliver

This is simply put the best decision you could've made for ASP.NET MVC. Hopefully this will also mark the end of the me-too-thinking inside Microsoft (ADO.NET EF vs. NHibernate, VS unit tests vs. NUnit, oh-my...).

# re: jQuery and Microsoft

Monday, September 29, 2008 10:20 AM by Eferi Web Development

Great news!  I've been using jQuery and ASP.net unsupported for a while now.

# re: jQuery and Microsoft

Monday, September 29, 2008 10:35 AM by Brandon

I'm not really an HTML guy...but when I see this JQuery it immediately reminds me of LINQ...a good thing.

# re: jQuery and Microsoft

Monday, September 29, 2008 10:41 AM by Thomas

Mr Guthrie, I could kiss you.

Thank you!

# re: jQuery and Microsoft

Monday, September 29, 2008 11:13 AM by Eric Polerecky

Great, since most of us use jQuery (or some other lib) there is little to no major impact. jQuery will be part of VS...for those who don't use it today. Wait...don't use jQuery..thats right those who don't know JS.

It's a good first step but to bring quantitative adoption MS will have first create components for those non-JavaScript..er Jscript..knowing developers can use. And it would be nice to stop the obstruction madness...

I still find it crazy that on todays AJAX web I can work with so many "web developers" who can't write a lick of JS....

# re: jQuery and Microsoft

Monday, September 29, 2008 11:19 AM by Jared Roberts

To Thumbs Up. Great Move Microsoft!

# re: jQuery and Microsoft

Monday, September 29, 2008 11:47 AM by Tom@rcsda.org

This is great , and smart news.  Congratulations and thank you!

# re: jQuery and Microsoft

Monday, September 29, 2008 12:37 PM by Holy Cow!!

This really is incredible - All you doom and gloom people need to hush now and just see this as another step in a different Microsoft.

Scott, you're really making this shift happen and the community is going to sing songs of your heroic many years from now (actually, I doubt anyone is going to be singing, but you get what I mean...)

# re: jQuery and Microsoft

Monday, September 29, 2008 1:08 PM by Will Fawthrop

This is great and all.... but a couple of concerns I would have right away are that.... the current MS client JS framework is already pretty heavy adding another framework library like jQuery is going to add even more bloat to the existing framework. So page / control developers who will leverage the controls from the ms ajax toolkit today and some of the new controls which will leverage jQuery will blindly have huge client payloads as the need for multiple libraries will become transparent.

# re: jQuery and Microsoft

Monday, September 29, 2008 2:02 PM by ponnu

Excellent news. This will definitely be a great help to the .Net community.

# re: jQuery and Microsoft

Monday, September 29, 2008 2:04 PM by GB

Scott, you rock! I started using jQuery 1.2.x recently with asp.net 2.0 web apps and it was a real challenge at first but now i love it and get great feedback from users. Still using the basics and even so, still primitively but getting better. BTW, I tried the other js frameworks out there, but found jQuery the easier to use.

# re: jQuery and Microsoft

Monday, September 29, 2008 2:05 PM by Jeremy T. Fuller

Apologies if this has been asked -- probably many times already. Can you comment on when we can expect an official release from Microsoft that includes jQuery and/or patch for Visual Studio to include it? If the timing is a long way out, should we go ahead and start manually integrating jQuery into our apps? What will be the mechanism for including the scripts (through built-in ScriptManager support of some type or just as an external include)? Thanks.

# re: jQuery and Microsoft

Monday, September 29, 2008 2:13 PM by olivier nguyen

With jQuery shipped with ASP.NET MVC, I think MS is going to the right direction in terms of building web apps. Looking forward to see similar initiatives ... I mean, instead of producing their own, I believe they should support other open source projects and add on top of them for specific features they want. I have in mind, LINQ & ENTITY FRAMEWORK VS. NHIBERNATE AND HQL. I would have been nice for them to support it instead of creating their own ... Just my 2 cents ...

# re: jQuery and Microsoft

Monday, September 29, 2008 2:33 PM by sean

Good news, notice that we already have an excellent intellisense support for jQuery in Aptana Studio, a great IDE for web projects.

# re: jQuery and Microsoft

Hello ScottGu,

I would like to see the same roadmap sounds about Client Data and Server Data for Silverlight and ClickOnce App.

Could I Dream about it?

Thank You!

# re: jQuery and Microsoft

Monday, September 29, 2008 4:17 PM by tampajohn

This is amazing, best news ever, I love you Scott.

# re: jQuery and Microsoft

Monday, September 29, 2008 4:38 PM by Scott

Hi Scott,

How will updates to the jQuery library be handled? Will periodic hotfixes be released when jQuery changes versions or a new patch is included?

# re: jQuery and Microsoft

Monday, September 29, 2008 6:07 PM by Dan

Really like Microsoft opening up to open source. Makes being a developer on the MS platform much easier and fun!

# re: jQuery and Microsoft

Monday, September 29, 2008 6:27 PM by Paul Kohler

Another very good move for ASP.NET land! Great to see  :-)

# re: jQuery and Microsoft

Monday, September 29, 2008 8:15 PM by tmc2k

This is outstanding to see MS finally understand the value of integrating with good open source projects. It's a huge win for MS and more importantly developers and end users. Please expand extend this thinking company-wide.

Actions like this will bring MS far more value than the $300m ad campaign.

# re: jQuery and Microsoft

Monday, September 29, 2008 8:38 PM by Jake

Well, I'm not a big fan of jquery, but I am excited about the shift in policy at Microsoft.

# re: jQuery and Microsoft

Tuesday, September 30, 2008 12:49 AM by Viktar

Great news. Bye, bye aptana studio.

# re: jQuery and Microsoft

Tuesday, September 30, 2008 3:59 AM by bogdan

I am using jQuery in few ASP .NET websites and on a SharePoint Intranet at work so it is a very good news :D Thanks a lot Scott !!!

# re: jQuery and Microsoft

Tuesday, September 30, 2008 5:34 AM by Horea

Great news! Finally Microsoft is shaking off the "not invented here" syndrome.

# re: jQuery and Microsoft

Tuesday, September 30, 2008 5:56 AM by Martin Dann

No way! Glad to see that you guys at Microsoft have seen the jQuery light. It is the way forward for sure. To be honest, I have been losing touch with ASP.NET, it seems so clunky at times. When I discovered jQuery I realised that I could introduce a fresh zest to my websites. I think this is a great step forward and the combination of ASP.NET MVC and jQuery could be a superb partnership.

All we need now is a better framework for developing single page applications and I think this will be the next major step forward.

Good Work Guys

The Dannster

# re: jQuery and Microsoft

Tuesday, September 30, 2008 6:13 AM by Marco Pankow

Excelent move Microsoft!

# re: jQuery and Microsoft

Tuesday, September 30, 2008 6:20 AM by Marco Pankow

Excelent move Microsoft!

JQuery rocks.

# re: jQuery and Microsoft

Tuesday, September 30, 2008 9:47 AM by vik20000in

great News....

# re: jQuery and Microsoft

Tuesday, September 30, 2008 10:02 AM by Matt

Super. This is someting that was lacking for years.

# re: jQuery and Microsoft

Tuesday, September 30, 2008 11:03 AM by Kumar

Microsoft has no choice other than adopting jQuery. jQuery is so powerful that Asp.Net AJAX library is not even closer to that. That is a good decision u guys have made.

# re: jQuery and Microsoft

Tuesday, September 30, 2008 12:04 PM by Test

Excellent news!

Greatings from Sweden

# re: jQuery and Microsoft

Tuesday, September 30, 2008 1:55 PM by JH

Great new? WTF, hell I could care less if MS supports JQuery, I use it instead of their fat slow MS Ajax framwork anyway. I fail to see how this is meaningful news other than MS tooting their horn to show they support Open Source (not).  I don't need MS approval or support to use JQuery today!  So whats so Cool about this?????

# re: jQuery and Microsoft

Tuesday, September 30, 2008 2:28 PM by Rhys

Ahhhh so it was Microsoft joining with and OS team that cuased the credit crunch. ;)

# re: jQuery and Microsoft

Tuesday, September 30, 2008 2:43 PM by johnthom

Yes, awesome, excellent, thanks!!!

# re: jQuery and Microsoft

Tuesday, September 30, 2008 6:05 PM by goblin

I am having some concerns about so much logic being pushed in to the view which historically for testing purposes should remain as dumb as possible.  The JQuery syntax in particular makes it hard to write unit tests in Jsunit.  It took me awhile to really get my head around the whole TDD approach which if I had to boil it down to one line of description would be that "we fake the input for the object we are testing."  Jquery's very nature, at least in the way that Jquery developer's write there code is not very testable.  If you are to write functions as opposed to using selectors to call an element in the html you can begin to fake inputs and so forth.  The problem with this approach is that we then loose the advantages of Jquery which are that you can lay any script on top of any html so long as you reference the different classes and selectors in the html in your script.  If this is not clear let me write an example here:  

$('#myElement').val('some test code');

This is my mind is not a testable statement. Unless we mock the html that populates the this element.  Which can be done and would definitely test this line of code.  However, what the real problem is that we run into all kinds of runtime issues due to element names changing so what I really want to do is to test the relationship between the Jquery and the real html.  This is what i am trying to work out in my head.  If we can't do this we are just adding complexity that we can't test and probably encouraging a lot of bad design.  Thoughts|Comments?

# re: jQuery and Microsoft

Tuesday, September 30, 2008 6:45 PM by Seth

This is excellent news!

# re: jQuery and Microsoft

Tuesday, September 30, 2008 7:14 PM by Danny

Will wonders never cease , Way to go !  

# re: jQuery and Microsoft

Tuesday, September 30, 2008 7:15 PM by JoshStodola

This is absolutely AWESOME!

# re: jQuery and Microsoft

Tuesday, September 30, 2008 7:48 PM by Clinton Gallagher

Gu explains jQuery will be integrated with Visual Studio while clintonG tries to get his attention explaining Nate Koechley [natek AT yahoo-inc.com] authored the YUI Grids. Nate may be consulted regarding the integration of the YUI CSS library with Visual Studio.

He and his pals at Yahoo! did an amazing job with the JavaScript in their Yahoo! User Interface library (YUI) but its really their YUI CSS library that is to CSS libraries what jQuery has become to JavaScript libraries.

I mean since we're all of a sudden being all grown up about this for a change its time to accept the fact that all of that "friendly" CSS hype was not and is still not so friendly after all; a nice try but an abject failure so far off the mark it remains stupifying attempting to cope without the YUI CSS library.

So we must not forget the other aspect of UI development; CSS. Its clintonG that hopes Gu will agree to make it possible to integrate YUI CSS with Visual Studio given the same effort that is being expended to support the use of jQuery.

In my world view we'll then have the best of breed; C#, jQuery and YUI CSS libraries integrated into a framework that for all intents and purposes has become seamlessly agnostic with nothing to prove except being used to produce the hightest quality results which speak for themselves, however...there remains unfinished work; comparable XSLT, XML and XSD libraries.

# re: jQuery and Microsoft

Tuesday, September 30, 2008 8:07 PM by error

how is jQuery compared with scriptaculous?

# re: jQuery and Microsoft

Wednesday, October 1, 2008 12:57 PM by Tarcísio

Where I find an exemple of jQuery with asp.net 3.5?

# re: jQuery and Microsoft

Thursday, October 2, 2008 10:45 AM by massfellows

thank's for the great news. really exited.

# re: jQuery and Microsoft

Thursday, October 2, 2008 4:32 PM by FTeR

wow!

this is the 2nd dream come true since silverlight :D

I can't tell how much I hated javascript before jQuery. since than, I really enjoy using it.

# re: jQuery and Microsoft

Thursday, October 2, 2008 11:48 PM by tony_hild

As a .Net developer I'm feeling less discriminated by FOSS community now.

I'm brazilian, and when I say that I'm a .Net developer, everyone looks at me as suspicious. Anyway, we get used in the long of the time. :(

What's the next step? Releasing the .Net 3.5 extensions as open source? This would be great for Mono. To dream doesn't cost anything.

Thank you Scott.

# re: jQuery and Microsoft

Sunday, October 5, 2008 2:48 AM by Manohar

just fantastic..really exited.

# re: jQuery and Microsoft

Sunday, October 5, 2008 3:23 AM by nomercy007

I am amazed. It is really great to see Microsoft embrace a technology instead of treating it as competitor and trying to imitate it.  

# re: jQuery and Microsoft

Monday, October 6, 2008 4:14 AM by Onur ACUN

: ) ) yeaaah... This is very good...

# re: jQuery and Microsoft

Monday, October 6, 2008 4:57 AM by chhaysambo

It is great, that Visual Studio have jQuery intellisense.

# re: jQuery and Microsoft

Monday, October 6, 2008 7:50 AM by Renso

Scott, we have been using jQuery for some time now and have found the jqGrid to be a very productive way to display grid data in our MVC apps. Since with jqGrid you only have two lines of HTML, one for the grid itself and one for the pager, with pages that have multiple grids, up to over 10 grids in some pages, the ajax architecture that the jqGrid supports is a great performance booster. However, there are still some issues here and there with the jqGrid plugin specifically, will your team be supporting/helping with the jqGrid, or any other extensions/plugins or only concentrate on the jQuery core library? Also, how will you support it, by simply shipping with VS of actually throwing some resources at it also?

# re: jQuery and Microsoft

Monday, October 6, 2008 10:38 AM by rarepearldesign

This is absolutely fantastic. Couldn't be more impressed than I am with Microsoft deciding to embrace the open source market more and more!

Kudos!

# re: jQuery and Microsoft

Monday, October 6, 2008 2:32 PM by Pete Hurst

This is pretty amazing, I use jQuery in an existing AJAX app and knowing the library will be both more tightly coupled as well as officially supported is great news!

# re: jQuery and Microsoft

Monday, October 6, 2008 2:34 PM by Martin

I love Microsoft and ASP.NET even more for this!! Thanks for making our life easier.

# re: jQuery and Microsoft

Monday, October 6, 2008 6:28 PM by Zach Kral

I am so fantastically impressed! I am soooo glad to see this type of thought process and action coming from Microsoft. Please please please promote whomever conceived and approved of this idea.

# re: jQuery and Microsoft

Monday, October 6, 2008 8:55 PM by sixYo

cool ~~

good news , thanks microsoft!!!

# re: jQuery and Microsoft

Tuesday, October 7, 2008 8:45 AM by Greg

Any chance there will be some Visual Studio intellisense for Prototype at any time?

# re: jQuery and Microsoft

Tuesday, October 7, 2008 2:44 PM by Mozzy

WOW!

I've been now working with jQuery for the past 1 1/2 years and always have wondered when the big show will finally notice them. Happy to read about that.

# re: jQuery and Microsoft

Wednesday, October 8, 2008 9:58 AM by Matteo Conta

Great news, I'm using a lot of JQuery and Asp.net ajax in my project and I think that the partnership with JQuery team is great!

Thank you very much!

# re: jQuery and Microsoft

Wednesday, October 8, 2008 9:22 PM by Jack Killpatrick

It's very exciting to know that this is happening. We were early adopters of both jquery and the asp.net platform and having jquery tightly integrated with Visual Studio, native jquery-based widgets and more people contributing to the already awesome jQuery plugin repository, core and jquery-ui is a really nice step forward. Having MS adopt an opensource project in this way is huge, too.

# re: jQuery and Microsoft

Wednesday, October 15, 2008 10:14 AM by JC

Absolutely amazing

# re: jQuery and Microsoft

Thursday, October 16, 2008 1:12 PM by Ernesto

sorry Scott for using this medium to consult a jQuery behaviour, but i haven't been able to find a resolution:

can this html break jQuery ?

&lt;input name="ctl00$body1$Tab_Customer1$txtAddr1" type="text" value="text value" id="ctl00_body1_Tab_Customer1_txtAddr1" class="field-data" /&gt;

(its an asp:textbox inside a usercontro, inside a panel, inside a contentholder)

# re: jQuery and Microsoft

Monday, October 20, 2008 8:12 AM by Peter O

I have not checked on this, but my company may not permit the use of jQuery even though it is under the MIT license.  (Licensing can be tricky.)

If, hypothetically, I cannot use jQuery, is that going to cause issues using ASP.NET and ASP.NET AJAX going forward?

Stated another way: How much will ASP.NET depend on jQuery going forward?  Will it be absolutely dependent (probably not)?  How much new functionality would I miss without jQuery?

Thanks!

# re: jQuery and Microsoft

Monday, October 20, 2008 1:56 PM by ScottGu

Hi Peter,

>>>>>>>If, hypothetically, I cannot use jQuery, is that going to cause issues using ASP.NET and ASP.NET AJAX going forward?

ASP.NET and the core ASP.NET AJAX features will work fine without requiring jQuery.  So you will still be ok even if you can't/don't use jQuery.

Hope this helps,

Scott

# re: jQuery and Microsoft

Tuesday, October 21, 2008 4:58 PM by Linux

Linux, Gnu, Unix..

# re: jQuery and Microsoft

Thursday, October 23, 2008 4:55 PM by Alex Fedin

The best and most important thing in the jQuery is that it supports numbers of selectors (event a subset of XPath query!), and allows to apply same operation to all results.

Mozilla Firefox provides jQuery out-of-the-box - it is included into the browser.

# re: jQuery and Microsoft

Friday, November 21, 2008 11:08 AM by Viktar Karpach | Web Developer Blog

Everybody should learn jQuery. It makes UI development much more easy.