jQuery 1.3 and jQuery UI

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.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    27 Favorites

    jQuery 1.3 and jQuery UI - Presentation Transcript

    1. jQuery 1.3 and jQuery UI John Resig http://ejohn.org/ - http://twitter.com/jeresig/
    2. jQuery ✦ jQuery Plugins ✦ jQuery UI ✦ Themeroller ✦ jQuery 1.3: ✦ Selector Engine ✦ Manipulation ✦ Sniffing ✦ jQuery Testing ✦ jQuery Performance
    3. Plugins ✦ Huge plugin ecosystem ✦ Managed by Plugin tracker http://plugins.jquery.com/ ✦ Hundreds in the tracker - even more on the web
    4. jQuery Plugins ✦ Extend the jQuery system ✦ Add on extra methods: jQuery(“div”).hideRemove(); ✦ Trivial to implement: jQuery.fn.hideRemove = function(speed){ return this.hide(speed, function(){ jQuery(this).remove(); }); };
    5. jQuery UI ✦ A complete set of themed, cross-browser, user interface components (plugins!). ✦ Drag, Drop, Sort, Select, Resize ✦ Accordion, Datepicker, Dialog, Slider, Tabs ✦ More info: http://ui.jquery.com/ ✦ 1.6 is almost ready
    6. Accessibility ✦ Keyboard Accessible ✦ Screenreader Accessible ✦ Grant from Mozilla Foundation to implement ARIA
    7. Support ✦ Full-time developer: ✦ Paul Bakaus ✦ Hired by LifeRay
    8. Themeroller ✦ Customize the styling of any jQuery UI component ✦ Full CSS, images for all components ✦ Easy to customize and use ✦ http://themeroller.com/
    9. Todo List http://jquery.com/files/todo/ http://jquery.com/files/todo/done.php
    10. jQuery 1.3 ✦ Selectors ✦ DOM Modification ✦ Browser Sniffing
    11. Selectors
    12. Code name “Sizzle” ✦ http://github.com/jeresig/sizzle/tree/master ✦ New Selector Engine for jQuery ✦ 1.5 - 4x faster than other libraries ✦ 4KB Compressed ✦ No dependencies, can be used by other libraries (MochiKit, Prototype, Dojo)
    13. Manipulation ✦ Four common methods: append, prepend, before, after ✦ $(“<li>and this too!</li>”)
    14. Injecting ✦ Loop through elems, cloneNode(true) each, insert into DOM ✦ 5 paragraphs ✦ 100 divs ✦ 2 method calls (insert, clone) ✦ 1000 method ✦ *Very* slow ✦ Simple plugin provides 10-15x speed-up: http://dev.jquery.com/~john/ticket/append/
    15. Document Fragments ✦ Move the nodes into a Document Fragment ✦ Husk DOM container ✦ Whole container can be cloned ✦ and whole container can be injected ✦ Saves a ton of repetition
    16. Sniffing ✦ All major JS libraries use browser sniffing ✦ Look at the user agent and make guesses ✦ navigator.userAgent is bad! :-( ✦ We can get rid of this! ✦ Makes our code more resilient to change
    17. Detection ✦ Object Detection ✦ if ( document.getElementsByTagName ) ✦ Feature Simulation ✦ var div = document.createElement(“div”); div.innerHTML = “<!--test-->”; var a = div.getElementsByTagName(“*”); if ( a.length > 0 ) { // Why did we match a comment? }
    18. Testing
    19. JavaScript Test Suite ✦ qUnit (jQuery Test Suite) http://docs.jquery.com/QUnit ✦ By Joern Zaefferer
    20. qUnit Usage ✦ test(\"a basic test example\", function() { ok( true, \"this test is fine\" ); var value = \"hello\"; equals( \"hello\", value, \"We expect value to be hello\" ); }); module(\"Module A\"); test(\"first test within module\", function() { ok( true, \"all pass\" ); }); test(\"second test within module\", function() { ok( true, \"all pass\" ); }); module(\"Module B\"); test(\"some other test\", function() { expect(1); ok( true, \"well\" ); });
    21. qUnit Output
    22. Performance Analysis
    23. Profiling ✦ Deep Profiling Plugin ✦ Watch all method calls and events ✦ http://ejohn.org/blog/deep-profiling- jquery-apps/ ✦ http://dev.jquery.com/~john/plugins/profile/ github.com.html ✦ javascript:jQuery.displayProfile();
    24. Thank You! ✦ John Resig ✦ http://ejohn.org/ ✦ http://twitter.com/jeresig/

    + jeresigjeresig, 11 months ago

    custom

    8702 views, 27 favs, 10 embeds more stats

    A talk given at Mexico Web 2.0, November 2008.

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 8702
      • 8613 on SlideShare
      • 89 from embeds
    • Comments 0
    • Favorites 27
    • Downloads 289
    Most viewed embeds
    • 42 views on http://www.sliversofmysoul.netsons.org
    • 21 views on http://www.techiegyan.com
    • 10 views on http://knitinr.blogspot.com
    • 7 views on http://blog.sightworks.com
    • 2 views on https://confluence.uk.jpmorgan.com

    more

    All embeds
    • 42 views on http://www.sliversofmysoul.netsons.org
    • 21 views on http://www.techiegyan.com
    • 10 views on http://knitinr.blogspot.com
    • 7 views on http://blog.sightworks.com
    • 2 views on https://confluence.uk.jpmorgan.com
    • 2 views on http://220.130.130.220
    • 2 views on http://static.slideshare.net
    • 1 views on http://bhakthan.blogspot.com
    • 1 views on http://techlog.cz
    • 1 views on http://localhost

    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