• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
YUI
 

YUI

on

  • 5,026 views

 

Statistics

Views

Total Views
5,026
Views on SlideShare
4,879
Embed Views
147

Actions

Likes
9
Downloads
94
Comments
1

4 Embeds 147

http://josephj.com 139
http://josephjiang.com 4
http://www.linkedin.com 3
http://www.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Thank you very much!
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    YUI YUI Presentation Transcript

    • Web 2.0 YUI http://josephj.com/training/yui josephj
    • @josephj6802 http://josephj.com josephj@yahoo-inc.com
    • Hi! josephj @josephj6802 http://josephj.com josephj@yahoo-inc.com
    • Hi! josephj • 2.5 F2E @josephj6802 http://josephj.com josephj@yahoo-inc.com
    • Hi! josephj • 2.5 F2E • 0.5 Evangelist @josephj6802 http://josephj.com josephj@yahoo-inc.com
    • Hi! josephj • 2.5 F2E • 0.5 Evangelist • SDE @josephj6802 http://josephj.com josephj@yahoo-inc.com
    • 2008.5 ITHome http://farm4.static.flickr.com/3251/3017901989_9252512e77_o.jpg
    • Agenda
    • Agenda • F2E
    • Agenda • F2E • YUI
    • Agenda • F2E • YUI •
    • Front-end Engineer
    • • HTML / CSS / JavaScript
    • • HTML / CSS / JavaScript •
    • • HTML / CSS / JavaScript • •
    • SOUNDS SIMPLE!
    • no.
    • server
    • (X)HTML server
    • (X)HTML Specification server
    • (X)HTML Specification Implementation server
    • (X)HTML Specification Implementation Bugs server
    • (X)HTML Specification Implementation Bugs [ Theory / Practice ] server
    • CSS BOM API (X)HTML DOM JavaScript DOM API Specification Data Transport data: custom, xml, mixed: new xhtml Implementation json behavior: js Bugs [ Theory / Practice ] server
    • Safari Firefox Opera IE5, 6, 7 Firefox Opera 10,000+ UAs Macintosh Windows Linux, Unix, Mobile CSS BOM API (X)HTML DOM JavaScript DOM API Specification Data Transport data: custom, xml, mixed: new xhtml Implementation json behavior: js Bugs [ Theory / Practice ] server
    • Safari Firefox Opera Firefox Opera 10,000+ UAs IE5, 6, 7 Macintosh Windows Linux, Unix, Mobile CSS BOM API (X)HTML DOM JavaScript DOM API Specification data: custom, xml, mixed: new xhtml, Data Transport Implementation behavior: js json Defects [ Theory / Practice ] server
    • Safari Firefox Opera Firefox Opera 10,000+ UAs IE5, 6, 7 Macintosh Windows Linux, Unix, Mobile knowledge areas: 7 CSS dimensions: xJavaScript 4 BOM API (X)HTML DOM DOM API platforms: x 3 Specification data: custom, xml, mixed: new xhtml, platform: x 4 browsers perDefects Data Transport Implementation behavior: js json rendering modes: x 2 [ Theory / Practice ] server =672
    • usability, internationalization, localization, visual design, accessibility, information architecture, security, build processes, performance, benchmarking, devices, portability
    • Yahoo
    • Yahoo CSS Sprites
    • Yahoo CSS Sprites
    • TabView JavaScript
    • No Image Not Loaded
    • Screen <link rel=quot;stylesheetquot; type=quot;text/cssquot; href=quot;.../i8/ykp_qack_min_20080707.cssquot; media=quot;screenquot;>
    • Print <link rel=quot;stylesheetquot; type=quot;text/cssquot; href=quot;.../i8/ykp_print_min_20080707.cssquot; media=quot;printquot;>
    • 15
    • from Lifted ©2007 Pixar Animation Studios
    • ...
    • http://developer.yahoo.com/yui
    • UI UI YUI UI
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    • iPhone YUI
    • http://blogs.computerworld.com/nytimes_iphone_browser_marketshare iPhone YUI
    • http://marketshare.hitslink.com/report.aspx?sample=21&qprid=43&qpcustom=Chrome+0.2 Google Chrome ;)
    • http://marketshare.hitslink.com/report.aspx?sample=21&qprid=43&qpcustom=Chrome+0.2 Google Chrome ;)
    • http://marketshare.hitslink.com/report.aspx?sample=21&qprid=43&qpcustom=Chrome+0.2 Google Chrome ;)
    • Button + Menu + Container + ... = RTE Editor
    • Accessbility
    • YUI YUI CSS YUI YUI
    • 1. YUI YAHOO.util.* : Web 2.0
    • 1. YUI YAHOO.util.* : Web 2.0 • AJAX AJAX JSON
    • 1. YUI YAHOO.util.* : Web 2.0 • AJAX AJAX JSON •
    • 1. YUI YAHOO.util.* : Web 2.0 • AJAX AJAX JSON • • Cookie Selector
    • Browser History Manager AJAX http://tw.knowledge.yahoo.com/my/my_trace?show=AC00668153
    • SEO AJAX
    • AJAX SEO AJAX
    • 2. YUI YAHOO.widget.* : • • • • • • HTML • • Slider • • • • • • •
    • 3. YUI
    • YUI Compressor
    • YUI Compressor
    • YUI Compressor
    • Y! Slow http://developer.yahoo.com/yslow
    • 4. YUI CSS
    • 4. YUI CSS • Reset
    • 4. YUI CSS • Reset • Fonts
    • 4. YUI CSS • Reset • Fonts • Grids DIVs+CSS
    • reset.css
    • fonts.css reset.css
    • grids.css fonts.css reset.css
    • 950px 240px 50%, 50%
    • doc3 = 989px .yui-t6 = Right, 300px
    • doc4 = 974px .yui-t3 = Left, 300px
    • YUI
    • Library
    • Developer Network Home Help Site Search Design Pattern Library Yahoo! Developer Network > Design Pattern Library > Auto Complete Auto Complete QUICK JUMP Problem Summary Solution The user needs to enter an item into a text box which could ambiguous or hard to Rationale remember and therefore has the potential to be mis-typed. Accessibility EXAMPLE: RELATED PATTERNS Calendar Picker AS USED ON YAHOO! Yahoo! Mail Beta Yahoo! Maps Beta Yahoo! My Web 2 BLOG Blog Article Y! UI CODE EXAMPLES Auto Complete Component Auto completion of contacts in Yahoo! Mail Beta Y! Search (JSON) Y! Search (XML) Use When In-Memory (array) In-Memory (function) The suggestions can be pulled from a manageable set of data. Flickr (XML) The input item can be entered in multiple ways. Flat data Playground The input item can be matched with a specific data item in the system. Speed and accuracy of entry is an important goal. Show with revisions The total number of items would be too large or inconvenient for displaying in a standard drop down box. Solution This work is licensed under a Creative Commons Attribution 2.5 License. Layout Use a standard text box for input. Label the text box to match the user's expection of what field will be searched against. Interaction As the user types, display a list of suggested items that most closely match what the user has typed. Continue to narrow or broaden the list of suggested items based on the user's input. Display the suggested items list in a drop down box directly underneath the text box. The suggested items list may be based on the complete set of data or more narrowly based on other criteria such as each item's frequency of use. When available, show multiple fields of information for each suggested item. In the Yahoo! Mail example above, two fields are presented: the contact's full name and the contact's email address. Highlight the closest matching item within the suggested items list. Show the matched item as first in the list. Highlight the background of the matched item. When multiple fields are shown for each suggested item the match may occur with the initial characters of any of the fields presented. For each suggested item in the suggest items list show the characters that exactly match the user's input. When multiple fields are shown in a suggested item the matching characters may appear in any of the fields presented. In the example below, the characters 'Yu' have been typed by the user. The match is on three items. Notice that the first item matched on the contact's email address '<yuiblogger.com>' whereas the second and third items are matched on the contact's name (e.g., 'Yusef Jones'.) Allow the user to delete a character of input and display the previous suggested items list. Allow the user to complete the input field by pressing the Tab key or Enter; key. The current matched item in the suggested items list will be accepted as the value for the input field. Allow the user to optionally highlight an item of their choice from the suggested item list with the mouse or with the up and down arrow keys. Allow the user to cancel the suggested items list by pressing the Esc key. The drop down list will close. Subsequently pressing the Tab key or Enter key will accept the value from the input field. However, typing more characters after hitting the Esc key will restart the auto completion behavior displaying the suggested items list. If multiple input items are allowed in a single input field, allow the user to use the Comma key to separate each input item. Pressing the comma key will complete an individual item match. The auto complete behavior restarts when the user begins typing characters for the next input item. Rationale Reducing the number of keystrokes allows for faster user input. Showing additional formatting information in the suggested items list (like the email address in the example above) removes ambiguity. Continual feedback helps the user narrow in on the correct choice. Accessibility Label the text box to match the user's expection of what field will be searched against. Allow the user to highlight a desired match either using a mouse or navigating to it with the up or down arrow keys. Allow the user to complete the form by pressing the Tab or Enter keys. Allow the user to cancel suggestions by pressing the Esc key. Allow the input field to receive keyboard focus by pressing the Tab key. Once the edit field is in focus make sure that the focus stays in the edit field during autocomplete. Do not send any page refreshes when updating the field (page refreshes will signal assistive technology to start reading the page again.) The insertion cursor should move as the left/right arrow keys are pressed in the text field. Copyright © 2005-2007 Yahoo! Inc. All rights reserved. Privacy Policy - Terms of Service - Copyright Policy - Job Openings
    • YUI 300
    • [more videos ] Yahoo! UI Library YUI Theater The Yahoo! User Interface Library (YUI) Home Nate Koechley — quot;The YUI CSS YUIBlog Foundationquot; The Yahoo! User Interface (YUI) Library is a set of utilities and YUI Discussion Forum controls, written in JavaScript, for building richly interactive web YUI on Sourceforge applications using techniques such as DOM scripting, DHTML and API Documentation AJAX. The YUI Library also includes several core CSS resources. All YUI Examples Gallery components in the YUI Library have been released as open source Powered by YUI under a BSD license and are free for all uses. YUI Theater YUI License Download YUI version 2.3.1, including full API documentation and more than 200 functional examples YUI Articles from Sourceforge. YUI FAQ Graded Browser Support The library's developers blog at the YUI Blog and the YUI Library community Skinning YUI exchanges ideas at YDN-JavaScript on Yahoo! Groups. Bug Reports/Feature Requests Serving YUI Files from Yahoo! Security Best Practices Using YUI: YUI Core: YUI Library Controls/Widgets: FAQ The YAHOO YUI Components Global Object AutoComplete Animation Getting Started (base requirement Button Control AutoComplete Licensing for all YUI Calendar Browser History Manager Articles components) Color Picker Button Cheat Sheets Senior YUI engineer Nate Koechley guides you DOM Collection Calendar Container Support & through the YUI CSS foundation in this October 2007 (convenience (including Module, Color Picker Community tech talk. methods for DOM Overlay, Panel, Connection Manager Filing Bugs & interactions) Tooltip, Dialog, Container Feature Requests Event Utility (event SimpleDialog) DataSource normalization and Yahoo! User Interface Blog Searchable API DataTable DataTable tools) Documentation: Logger In the Wild for November 30th Dom API docs are availabe Menu Nate Koechley 11/30/07 19:45:25 YUI Library Utilities: Drag & Drop for every YUI Rich Text Editor Animation Utility Element Implementation Focus: TripIt component. You can Event Browser History Eric Miraglia 11/14/07 11:22:42 search the API Slider Manager ImageLoader [experimental] documentation with Caridy Patiño Mayea’s Bubbling Library Updated TabView Logger Connection instant filtering on the Eric Miraglia 11/07/07 09:23:45 TreeView Manager (for Menu main API page. Implementation Focus: Nestoria XHR/Ajax) Rich Text Editor Eric Miraglia 11/06/07 17:58:27 YUI Library CSS The YUI Compressor: DataSource Utility Slider Tools: Using the Yahoo Global Object to Manage Object The YUI Compressor is TabView CSS Reset Inheritance and Composition: Four New YUI a build-process Drag and Drop TreeView (neutralizes Examples component that helps Utility Yahoo Global Object browser CSS Eric Miraglia 11/06/07 17:54:03 you minify your Element Utility YUI Loader styles) JavaScript and CSS. ImageLoader Utility YUI Test CSS Base (applies Documentation and [experimental] Reset CSS consistent style download information The YUILoader YUI Forum on Yahoo! Groups Base CSS foundation for are available here. Utility Fonts CSS common elements) Using DataTable with Drag and Drop The YUI Test Grids CSS CSS Fonts guiltyspark05 12/03/07 21:52:02
    • -debug
    • -min
    • API
    • YUI 50 YUI developer.yahoo.com/yui/theater
    • YUI
    • YUI OSDC
    • Carousel
    • +
    • YUI
    • YUI
    • Q&A
    • YUI
    • YUI BSD License
    • Open Source ?
    • • Fasten Improvement
    • • Fasten Improvement • Fun
    • • Fasten Improvement • Fun • Innovation
    • • Fasten Improvement • Fun • Innovation • Recruiting
    • • Fasten Improvement • Fun • Innovation • Recruiting •
    • • Fasten Improvement • Fun • Innovation • Recruiting • • YUI Contributor
    • jQuery Prototype Dojo GWT
    • • JavaScript
    • • JavaScript •
    • • JavaScript • • JavaScript
    • • JavaScript • • JavaScript •
    • • JavaScript • • JavaScript • •
    • • JavaScript • • JavaScript • • • QA
    • • JavaScript • • JavaScript • • • QA •
    • IDE
    • IDE ...
    • Aptana
    • no.
    • • • ASP, PHP, RoR, Python, JAVA... • • 3rd Party
    • YUI
    • YUI http://www.wallpapergate.com/wallpaper22725.html http://josephj.com/training/nctu/
    • HTML Yahoo!
    • /index.php HTML Layout YUI Grids
    • /index.php HTML Layout YUI Grids
    • <div id=”nav”> <div class=”hd”> <h2> </h2> </div> <div class=”bd”> <p> </p> </div> <div class=”ft”> <a href=”...”> ... </a> </div> </div>
    • <div id=”nav”> <div class=”hd”> <h2> </h2> </div> <div class=”bd”> <p> </p> </div> <div class=”ft”> <a href=”...”> ... </a> </div> </div>
    • <div id=”nav”> <div class=”hd”> <h2> </h2> </div> <div class=”bd”> ID <p> </p> </div> <div class=”ft”> <a href=”...”> ... </a> </div> </div>
    • <div id=”nav”> <div class=”hd”> <h2> </h2> </div> <div class=”bd”> ID .hd, .bd, .ft <p> </p> header body footer </div> <div class=”ft”> <a href=”...”> ... </a> </div> </div>
    • inc/search_box.php
    • inc/search_box.php ykpsb
    • inc/search_box.php ykpsb • ykp + prefix http://twiki.corp.yahoo.com/view/Devel/PropertyPrefixesForNaming
    • inc/search_box.php ykpsb • ykp + prefix http://twiki.corp.yahoo.com/view/Devel/PropertyPrefixesForNaming • sb search box
    • id CSS namespace form .extra [CSS] [HTML] <style> <div id=”ykpsb”> #ykpsb { <div class=”bd clearfix”> margin-bottom:10px; <form ...> } ... #ykpsb form { </form> float:left; <div class=”extra”> } ... #ykpsb .extra { </div> float:right; </div> } </div> </style>
    • ykpsb
    • yhtw_masthead ykpmt ykpsb ykpimt ykpadv ykpimqa ykpimr ykpug ykpiht ykpiht
    • HTML http://josephj.com/training/nctu/html-module.html 1. id 2. hd, bd, ft class 3. CSS font-weight:bold; font-size:16px; background:#ffe; color:#369;
    • YUI Grids DIV + CSS http://developer.yahoo.com/yui/grids/builder/
    • YUI Grid Builder http://developer.yahoo.com/yui/grids/builder/
    • 950px
    • 950px 240px
    • 950px 240px
    • 950px 240px 50%, 50%
    • YUI AJAX Web 2.0 http://josephj.com/training/nctu/yui-ajax.html
    • YUI AJAX YUI AJAX Connection Manager A
    • YUI AJAX YUI AJAX Connection Manager 1. Request A
    • YUI AJAX YUI AJAX Connection Manager 2. Request 1. Request A A
    • YUI AJAX YUI AJAX Connection Manager 2. Request 1. Request A 3. A
    • YUI AJAX YUI AJAX Connection Manager 2. Request 1. Request A 3. A 4.
    • YUI AJAX AJAX A
    • YUI AJAX AJAX 1. JavaScript Request A
    • YUI AJAX AJAX 2. Request 1. JavaScript Request A A
    • YUI AJAX AJAX 2. Request 1. JavaScript Request A 3. A
    • YUI AJAX AJAX 2. Request 1. JavaScript Request A 3. A 4.
    • YUI Connection http://josephj.com/training/nctu/yui-ajax.html
    • YUI Get Utility http://josephj.com/training/nctu/yui-get.html
    • JavaScript
    • JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com
    • JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com <script src=”...”></script>
    • JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com <script src=”...”></script> http://josephj.com/training/ncu-tsung/script.html
    • JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com <script src=”...”></script> <script src=”http://www.josephjiang.com/training/ncu-tsung/data.js “></script> http://josephj.com/training/ncu-tsung/script.html
    • JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com <script src=”...”></script> var outputString = ‘hello’; getData(outputString); <script src=”http://www.josephjiang.com/training/ncu-tsung/data.js “></script> http://josephj.com/training/ncu-tsung/script.html
    • JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com <script src=”...”></script> <script> function getData (data) { var outputString = ‘hello’; alert(data); getData(outputString); } </script> <script src=”http://www.josephjiang.com/training/ncu-tsung/data.js “></script> http://josephj.com/training/ncu-tsung/script.html
    • JavaScript “ ”
    • http://api.flickr.com/services/rest/? method=flickr.photos.search&api_key=d498ec869768ecea276a7cb3906241d9&text= &format=json
    • <script src=”http://api.flickr.com/services/rest/? method=flickr.photos.search&api_key=d498ec869768ecea276a7cb3906241d9&text= &format=json “></script>
    • YUI Get Utility
    • YUI Get Utility <script/> •
    • YUI Get Utility <script/> • • YAHOO.util.Get.script(url)
    • YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery...
    • YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON
    • YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON <link/> •
    • YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON <link/> • • YAHOO.util.Get.css(url)
    • YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON <link/> • • YAHOO.util.Get.css(url) • ex.
    • YUI Get Utility http://josephj.com/training/nctu/yui-get.html
    • YUI
    • YUI http://josephj.com/training/nctu/yui-menu.html 1. new YAHOO.widget.MenuBar([ id]); YUI 2. render()
    • YUI http://josephj.com/training/nctu/yui-menu.html (true false) autosubmenudisplay hidedelay n (true false) lazyload
    • YUI UI
    • YUI Button HTML YUI Button
    • YUI http://josephj.com/training/nctu/yui-button.html 1. new YAHOO.widget.Button([ id]);
    • YUI http://josephj.com/training/nctu/yui-button.html 1. new YAHOO.widget.Button([ id]);
    • YUI Web 2.0
    • YUI Container
    • YUI Container YAHOO.widget.Panel
    • YUI Container YAHOO.widget.Dialog YAHOO.widget.Panel
    • YUI Container YAHOO.widget.Dialog YAHOO.widget.Panel YAHOO.widget.Panel
    • YUI Container YAHOO.widget.Dialog YAHOO.widget.Panel YAHOO.widget.Panel YAHOO.widget.SimpleDialog
    • YUI http://josephj.com/training/nctu/yui-panel.html 1. var oPanel = new YAHOO.widget.Panel([ id], [ ]); #panel 2. oPanel.render(document.body) append 3. oButton.addListener(‘click’, onButtonClick) onButtonClick oPanel.show();
    • YUI http://josephj.com/training/nctu/yui-panel.html close fixedcenter modal underlay shadow’, ‘matte’ visible width { 1: 1, 2: 2}
    • Questions?
    • Thank You http://developer.yahoo.com/yui/ josephj@yahoo-inc.com