JQuery: JavaScript Library of the Future

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

2 comments

Comments 1 - 2 of 2 previous next Post a comment

  • + rhyolight Matthew Taylor 3 weeks ago
    Thank you, Daniel. There will be a video of the presentation I gave at the Strange Loop Conference (http://thestrangeloop.com) coming to DZone soon.
  • + dshaw Daniel Shaw 4 weeks ago
    Great preso. One of the clearest explanations of jQuery I’ve ever encountered.
Post a comment
Embed Video
Edit your comment Cancel

Notes on slide 1

What you get back from selectors is the jQuery object, which contains the selected elements.

What you get back from selectors is the jQuery object, which contains the selected elements.

What you get back from selectors is the jQuery object, which contains the selected elements.

What you get back from selectors is the jQuery object, which contains the selected elements.

What you get back from selectors is the jQuery object, which contains the selected elements.

What you get back from selectors is the jQuery object, which contains the selected elements.

What you get back from selectors is the jQuery object, which contains the selected elements.

What you get back from selectors is the jQuery object, which contains the selected elements.

What you get back from selectors is the jQuery object, which contains the selected elements.

What you get back from selectors is the jQuery object, which contains the selected elements.

12 Favorites

JQuery: JavaScript Library of the Future - Presentation Transcript

  1. jQuery JavaScript Library of the Future Matt Taylor
  2. YOUR WEBAPP SUCKS
  3. YOUR WEBAPP SUCKS
  4. “Most of the people writing in JavaScript are not programmers” - Douglas Crockford
  5. “Programmers who attempt to use JavaScript for non-trivial tasks often find the process frustrating if they do not have a solid understanding of the language.” - David Flanagan
  6. 1998
  7. The “Accidental” RIA Developer
  8. THEY USE jQUERY
  9. UNOBTRUSIVE
  10. UNOBTRUSIVE FUNCTIONAL
  11. UNOBTRUSIVE PRAGMATIC FUNCTIONAL
  12. IT IS OKAY NOT TO BE OBJECT ORIENTED
  13. IT IS OKAY NOT TO BE OBJECT ORIENTED
  14. jQuery Object jQuery
  15. jQuery Object jQuery(...)
  16. jQuery Object $(...)
  17. $() returns $
  18. Accessing the DOM with Selectors
  19. Accessing the DOM with Selectors $(‘#myId’)
  20. Accessing the DOM with Selectors $(‘#myId’) $(‘.myClass’)
  21. Accessing the DOM with Selectors $(‘#myId’) $(‘.myClass’) $(‘div.myClass’)
  22. Accessing the DOM with Selectors $(‘#myId’) $(‘.myClass’) $(‘div.myClass’) $(‘li > p’)
  23. Accessing the DOM with Selectors $(‘#myId’) $(‘.myClass’) $(‘div.myClass’) $(‘li > p’) $(‘a[href^=mailto:’)
  24. Accessing the DOM with Selectors $(‘#myId’) $(‘.myClass’) $(‘div.myClass’) $(‘li > p’) $(‘a[href^=mailto:’) $(‘li:even’)
  25. Accessing the DOM with Selectors $(‘#myId’) $(‘.myClass’) $(‘div.myClass’) $(‘li > p’) $(‘a[href^=mailto:’) $(‘li:even’) $(‘li:not(:last)’)
  26. Accessing the DOM with Selectors $(‘#myId’) $(‘.myClass’) $(‘div.myClass’) $(‘li > p’) $(‘a[href^=mailto:’) $(‘li:even’) $(‘li:not(:last)’) $(‘#myId .myClass’)
  27. Accessing the DOM with Selectors $(‘#myId’) $(‘.myClass’) $(‘div.myClass’) $(‘li > p’) $(‘a[href^=mailto:’) $(‘li:even’) $(‘li:not(:last)’) $(‘#myId .myClass’) $(‘#myTable tr.eq(3)’)
  28. Accessing the DOM with Selectors $(‘#myId’) $(‘.myClass’) $(‘div.myClass’) http://tinyurl.com/jlotf $(‘li > p’) $(‘a[href^=mailto:’) $(‘li:even’) $(‘li:not(:last)’) $(‘#myId .myClass’) $(‘#myTable tr.eq(3)’)
  29. WHAT YOU GET BACK
  30. Implicit Iteration $(‘li’).addClass(‘highlight’)
  31. Explicit Iteration $(‘li’).each(function() { $(this).addClass(‘highlight’); });
  32. Modifying Appearance of a Webpage
  33. Modifying Appearance of a Webpage .css(‘border’, ‘solid red’)
  34. Modifying Appearance of a Webpage .css(‘border’, ‘solid red’) .css({‘height’:‘100px’,
  35. Modifying Appearance of a Webpage .css(‘border’, ‘solid red’) .css({‘height’:‘100px’, ‘width’:‘200px’})
  36. Modifying Appearance of a Webpage .css(‘border’, ‘solid red’) .css({‘height’:‘100px’, ‘width’:‘200px’}) .height(‘100px’)
  37. Modifying Appearance of a Webpage .css(‘border’, ‘solid red’) .css({‘height’:‘100px’, ‘width’:‘200px’}) .height(‘100px’) .addClass() .removeClass()
  38. Modifying Appearance of a Webpage .css(‘border’, ‘solid red’) .css({‘height’:‘100px’, ‘width’:‘200px’}) .height(‘100px’) .addClass() .removeClass() .toggleClass()
  39. EVENTS $(‘p’).click(function() { // do stuff }); $(‘p’).click() // triggers $(‘p’).live(‘click’, function() { // do stuff }
  40. AJAX $.ajax({ type: "POST", url: "saveUrl", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); Ajax Event Callbacks ajaxStart, ajaxStop, ajaxComplete, beforeSend, ajaxError, ajaxSend, etc.
  41. EFFECTS .hide() .show() speeds .fadeIn() callbacks .fadeOut() compound effects .toggle() .slideToggle() animate()
  42. jQuery UI Open source UI components built on jQuery
  43. Plugins Nearly 500 plugins Simply include the .js and call a function
  44. Matthew Taylor rhyolight@gmail.com http://dangertree.net @rhyolight
  45. Matthew Taylor rhyolight@gmail.com http://dangertree.net @rhyolight

+ Matthew TaylorMatthew Taylor, 1 month ago

custom

4011 views, 12 favs, 5 embeds more stats

jQuery is a different type of JavaScript library, w more

More info about this document

CC Attribution License

Go to text version

  • Total Views 4011
    • 3722 on SlideShare
    • 289 from embeds
  • Comments 2
  • Favorites 12
  • Downloads 89
Most viewed embeds
  • 284 views on http://weblog.dangertree.net
  • 2 views on http://caminodelcid.net
  • 1 views on http://10consejos.com
  • 1 views on http://grancanario.com
  • 1 views on http://paratorpes.es

more

All embeds
  • 284 views on http://weblog.dangertree.net
  • 2 views on http://caminodelcid.net
  • 1 views on http://10consejos.com
  • 1 views on http://grancanario.com
  • 1 views on http://paratorpes.es

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories