Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz [email protected].

17
Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz [email protected]

Transcript of Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz [email protected].

Page 1: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

Cleveland C#/VB.Net User GroupFebruary 24, 2009Marv [email protected]

Page 2: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

… you write cascading style sheets (css)

… you write ASP.net software?… you write javascript?… you write jQuery?… you enjoy writing javascript?

Page 3: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

Why YOU might use jQueryHow to update VS-2008 for jQueryWrite some jQuery code Ideas for debugging jQuery codeReferences

Sam Nasr has kindly agreed to post these slides on http://www.clevelanddotnet.info/.

Page 4: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.
Page 5: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

Javascript has become essential to current web page development, but …

Javascript is not a good language design

Javascript has become bloated DOM navigation Browser differences

Writing Javascript code is tedious, time-consuming, and error-prone

Page 6: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

jQuery makes writing Javascript much easier DOM navigation (css-like syntax) Apply methods to sets of DOM elements Builder model (chain method calls) Extensible and there are tons of libraries Handles most browser differences so you

don’t have to Server provides data jQuery on client provides presentation

Page 7: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

Scott Guthrie is a Corporate Vice President in

the Microsoft Developer Division. He runs the development teams that build the following products/technologies: CLR and the core .NET Base Class Libraries ASP.NET  SilverlightWPFIIS 7.0 Visual Studio Tools for ASP.NET, WPF, Silverlight and Mobile

jQuery and Microsoft (Google ScottGu jQuery)

Page 8: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

Scott Guthrie announced “… 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”

Page 9: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

ScottGu, jQuery Intellisense in VS 2008 http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx

VS2008 sp1

KB958502-JScript Editor support for“-vsdoc.js” IntelliSense documentation fileshttp://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736

Page 10: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

February 7th, 2009FLOSS Weekly 55: jQueryHosts: Randal Schwartz and Leo LaportejQuery, a lightweight JavaScript library emphasizing JavaScript

and HTML interaction.Guest: John Resig for jQueryTWiT Wiki for this show John Resig is the creator, project lead and the head of the

development team of the jQuery JavaScript library, released in January, 2006. For Resig's day job he works as a JavaScript Evangelist for the Mozilla Corporation, where he does JavaScript testing, performance analysis, speaking, and writing. He's also the author of a number of other projects, including:

Sizzle: A cross-browser, standalone, JavaScript library for implementing CSS selector DOM selection in JavaScript, which is in the process of being integrated into jQuery, Prototype, Sizzle, YUI, and MochiKIt.

Processing.js: A port of the Processing visualization language to JavaScript (running in an HTML 5 canvas element).

Resig also speaks on the Open Web Podcast with Dion Almaer and Alex Russel, where they discuss web standards, JavaScript, and browsers. He's the author of the book "Pro JavaScript Techniques" and is working on his second book: "Secrets of the JavaScript Ninja" (due out in 2009)

Page 11: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

HTML only Text Tables

ASP.net AJAX

Page 12: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

ASP.netNo ScriptHandlerUses WebMethodsUses query string

Page 13: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

Compress jQuery-1.3.2.jsor use Google to host jQuery

http://code.google.com/apis/ajax/documentation/

Not needed: jQuery-1.3.2.vsdoc.js

Page 14: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

Plugins: http://docs.jquery.com/Plugins

and Google returns many more flot SimpleModal

Page 15: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

jQuery in Action

http://www.manning.com/bibeault/

chapter2\lab selectors.htmlchapter2\lab.wrapped.set.html

Page 16: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

http://jquery.com/

Scott Guthrie’s blog: http://weblogs.asp.net/scottgu/

Rick Strahl’s blog:http://www.west-wind.com/weblog/

Book: jQuery in Action

Page 17: Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz mss@case.edu.

A problem with Google is that it finds outdated information as easily as current information. Integration with Visual Studio 2008 is improving quickly. Be wary of old hints. Some are unnecessary. Some break things.

Go code some cool web pages using jQuery.

Thank you.

Marv [email protected]