20. jQuery Open Source JavaScript Library Goals Leverage CSS Selectors Simplify DOM Manipulation Lightweight Be extensible Be functional 6
21. Events & Effects Provides programmatic event hookup Mouse & Keyboard Apply various effects Show/Hide, Fade, Slide, and Animate Other effects available using plug-ins 7
22. jQuery Plug-ins JavaScript Libraries that depend on jQuery and add functionality jQuery UI is one plugin Over 1000 more available as plugins.jquery.com “Controls” Animation Layout Media Data 8
25. jQuery & Microsoft AJAX 11 jQuery is supported by Microsoft jQuery will ship with Visual Studio 2010 Available for 2008 with a patch
26. Pitfalls When Using jQuery & AJAX Control Toolkit Together AJAX + jQuery + jQuery Plug-ins = a lot of JavaScript! AJAX Controls have unreliable IDs, use CSS Class or element type Using AJAX to update the screen removes jQuery effects A plain UpdatePanel can also have this effect 12
27. When should I use each library? AJAX Control Toolkit when… You are using ASP.net & Visual Studio You want to callback to the server implicitly You want a simple solution jQuery when… You are really comfortable with JavaScript Most interaction is client-side only You need a custom solution 13