YUI

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

    1 Favorite

    YUI - Presentation Transcript

    1. Web 2.0 YUI http://josephj.com/training/yui josephj
    2. @josephj6802 http://josephj.com josephj@yahoo-inc.com
    3. Hi! josephj @josephj6802 http://josephj.com josephj@yahoo-inc.com
    4. Hi! josephj • 2.5 F2E @josephj6802 http://josephj.com josephj@yahoo-inc.com
    5. Hi! josephj • 2.5 F2E • 0.5 Evangelist @josephj6802 http://josephj.com josephj@yahoo-inc.com
    6. Hi! josephj • 2.5 F2E • 0.5 Evangelist • SDE @josephj6802 http://josephj.com josephj@yahoo-inc.com
    7. 2008.5 ITHome http://farm4.static.flickr.com/3251/3017901989_9252512e77_o.jpg
    8. Agenda
    9. Agenda • F2E
    10. Agenda • F2E • YUI
    11. Agenda • F2E • YUI •
    12. Front-end Engineer
    13. • HTML / CSS / JavaScript
    14. • HTML / CSS / JavaScript •
    15. • HTML / CSS / JavaScript • •
    16. SOUNDS SIMPLE!
    17. no.
    18. server
    19. (X)HTML server
    20. (X)HTML Specification server
    21. (X)HTML Specification Implementation server
    22. (X)HTML Specification Implementation Bugs server
    23. (X)HTML Specification Implementation Bugs [ Theory / Practice ] server
    24. 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
    25. 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
    26. 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
    27. 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
    28. usability, internationalization, localization, visual design, accessibility, information architecture, security, build processes, performance, benchmarking, devices, portability
    29. Yahoo
    30. Yahoo CSS Sprites
    31. Yahoo CSS Sprites
    32. TabView JavaScript
    33. No Image Not Loaded
    34. Screen <link rel=\"stylesheet\" type=\"text/css\" href=\".../i8/ykp_qack_min_20080707.css\" media=\"screen\">
    35. Print <link rel=\"stylesheet\" type=\"text/css\" href=\".../i8/ykp_print_min_20080707.css\" media=\"print\">
    36. 15
    37. from Lifted ©2007 Pixar Animation Studios
    38. ...
    39. http://developer.yahoo.com/yui
    40. UI UI YUI UI
    41. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    42. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    43. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    44. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    45. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    46. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    47. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    48. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    49. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    50. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    51. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    52. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    53. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    54. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    55. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    56. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    57. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
    58. iPhone YUI
    59. http://blogs.computerworld.com/nytimes_iphone_browser_marketshare iPhone YUI
    60. http://marketshare.hitslink.com/report.aspx?sample=21&qprid=43&qpcustom=Chrome+0.2 Google Chrome ;)
    61. http://marketshare.hitslink.com/report.aspx?sample=21&qprid=43&qpcustom=Chrome+0.2 Google Chrome ;)
    62. http://marketshare.hitslink.com/report.aspx?sample=21&qprid=43&qpcustom=Chrome+0.2 Google Chrome ;)
    63. Button + Menu + Container + ... = RTE Editor
    64. Accessbility
    65. YUI YUI CSS YUI YUI
    66. 1. YUI YAHOO.util.* : Web 2.0
    67. 1. YUI YAHOO.util.* : Web 2.0 • AJAX AJAX JSON
    68. 1. YUI YAHOO.util.* : Web 2.0 • AJAX AJAX JSON •
    69. 1. YUI YAHOO.util.* : Web 2.0 • AJAX AJAX JSON • • Cookie Selector
    70. Browser History Manager AJAX http://tw.knowledge.yahoo.com/my/my_trace?show=AC00668153
    71. SEO AJAX
    72. AJAX SEO AJAX
    73. 2. YUI YAHOO.widget.* : • • • • • • HTML • • Slider • • • • • • •
    74. 3. YUI
    75. YUI Compressor
    76. YUI Compressor
    77. YUI Compressor
    78. Y! Slow http://developer.yahoo.com/yslow
    79. 4. YUI CSS
    80. 4. YUI CSS • Reset
    81. 4. YUI CSS • Reset • Fonts
    82. 4. YUI CSS • Reset • Fonts • Grids DIVs+CSS
    83. reset.css
    84. fonts.css reset.css
    85. grids.css fonts.css reset.css
    86. 950px 240px 50%, 50%
    87. doc3 = 989px .yui-t6 = Right, 300px
    88. doc4 = 974px .yui-t3 = Left, 300px
    89. YUI
    90. Library
    91. 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
    92. YUI 300
    93. [more videos ] Yahoo! UI Library YUI Theater The Yahoo! User Interface Library (YUI) Home Nate Koechley — \"The YUI CSS YUIBlog Foundation\" 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
    94. -debug
    95. -min
    96. API
    97. YUI 50 YUI developer.yahoo.com/yui/theater
    98. YUI
    99. YUI OSDC
    100. Carousel
    101. +
    102. YUI
    103. YUI
    104. Q&A
    105. YUI
    106. YUI BSD License
    107. Open Source ?
    108. • Fasten Improvement
    109. • Fasten Improvement • Fun
    110. • Fasten Improvement • Fun • Innovation
    111. • Fasten Improvement • Fun • Innovation • Recruiting
    112. • Fasten Improvement • Fun • Innovation • Recruiting •
    113. • Fasten Improvement • Fun • Innovation • Recruiting • • YUI Contributor
    114. jQuery Prototype Dojo GWT
    115. • JavaScript
    116. • JavaScript •
    117. • JavaScript • • JavaScript
    118. • JavaScript • • JavaScript •
    119. • JavaScript • • JavaScript • •
    120. • JavaScript • • JavaScript • • • QA
    121. • JavaScript • • JavaScript • • • QA •
    122. IDE
    123. IDE ...
    124. Aptana
    125. no.
    126. • • ASP, PHP, RoR, Python, JAVA... • • 3rd Party
    127. YUI
    128. YUI http://www.wallpapergate.com/wallpaper22725.html http://josephj.com/training/nctu/
    129. HTML Yahoo!
    130. /index.php HTML Layout YUI Grids
    131. /index.php HTML Layout YUI Grids
    132. <div id=”nav”> <div class=”hd”> <h2> </h2> </div> <div class=”bd”> <p> </p> </div> <div class=”ft”> <a href=”...”> ... </a> </div> </div>
    133. <div id=”nav”> <div class=”hd”> <h2> </h2> </div> <div class=”bd”> <p> </p> </div> <div class=”ft”> <a href=”...”> ... </a> </div> </div>
    134. <div id=”nav”> <div class=”hd”> <h2> </h2> </div> <div class=”bd”> ID <p> </p> </div> <div class=”ft”> <a href=”...”> ... </a> </div> </div>
    135. <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>
    136. inc/search_box.php
    137. inc/search_box.php ykpsb
    138. inc/search_box.php ykpsb • ykp + prefix http://twiki.corp.yahoo.com/view/Devel/PropertyPrefixesForNaming
    139. inc/search_box.php ykpsb • ykp + prefix http://twiki.corp.yahoo.com/view/Devel/PropertyPrefixesForNaming • sb search box
    140. 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>
    141. ykpsb
    142. yhtw_masthead ykpmt ykpsb ykpimt ykpadv ykpimqa ykpimr ykpug ykpiht ykpiht
    143. 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;
    144. YUI Grids DIV + CSS http://developer.yahoo.com/yui/grids/builder/
    145. YUI Grid Builder http://developer.yahoo.com/yui/grids/builder/
    146. 950px
    147. 950px 240px
    148. 950px 240px
    149. 950px 240px 50%, 50%
    150. YUI AJAX Web 2.0 http://josephj.com/training/nctu/yui-ajax.html
    151. YUI AJAX YUI AJAX Connection Manager A
    152. YUI AJAX YUI AJAX Connection Manager 1. Request A
    153. YUI AJAX YUI AJAX Connection Manager 2. Request 1. Request A A
    154. YUI AJAX YUI AJAX Connection Manager 2. Request 1. Request A 3. A
    155. YUI AJAX YUI AJAX Connection Manager 2. Request 1. Request A 3. A 4.
    156. YUI AJAX AJAX A
    157. YUI AJAX AJAX 1. JavaScript Request A
    158. YUI AJAX AJAX 2. Request 1. JavaScript Request A A
    159. YUI AJAX AJAX 2. Request 1. JavaScript Request A 3. A
    160. YUI AJAX AJAX 2. Request 1. JavaScript Request A 3. A 4.
    161. YUI Connection http://josephj.com/training/nctu/yui-ajax.html
    162. YUI Get Utility http://josephj.com/training/nctu/yui-get.html
    163. JavaScript
    164. JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com
    165. JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com <script src=”...”></script>
    166. JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com <script src=”...”></script> http://josephj.com/training/ncu-tsung/script.html
    167. 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
    168. 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
    169. 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
    170. JavaScript “ ”
    171. http://api.flickr.com/services/rest/? method=flickr.photos.search&api_key=d498ec869768ecea276a7cb3906241d9&text= &format=json
    172. <script src=”http://api.flickr.com/services/rest/? method=flickr.photos.search&api_key=d498ec869768ecea276a7cb3906241d9&text= &format=json “></script>
    173. YUI Get Utility
    174. YUI Get Utility <script/> •
    175. YUI Get Utility <script/> • • YAHOO.util.Get.script(url)
    176. YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery...
    177. YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON
    178. YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON <link/> •
    179. YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON <link/> • • YAHOO.util.Get.css(url)
    180. YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON <link/> • • YAHOO.util.Get.css(url) • ex.
    181. YUI Get Utility http://josephj.com/training/nctu/yui-get.html
    182. YUI
    183. YUI http://josephj.com/training/nctu/yui-menu.html 1. new YAHOO.widget.MenuBar([ id]); YUI 2. render()
    184. YUI http://josephj.com/training/nctu/yui-menu.html (true false) autosubmenudisplay hidedelay n (true false) lazyload
    185. YUI UI
    186. YUI Button HTML YUI Button
    187. YUI http://josephj.com/training/nctu/yui-button.html 1. new YAHOO.widget.Button([ id]);
    188. YUI http://josephj.com/training/nctu/yui-button.html 1. new YAHOO.widget.Button([ id]);
    189. YUI Web 2.0
    190. YUI Container
    191. YUI Container YAHOO.widget.Panel
    192. YUI Container YAHOO.widget.Dialog YAHOO.widget.Panel
    193. YUI Container YAHOO.widget.Dialog YAHOO.widget.Panel YAHOO.widget.Panel
    194. YUI Container YAHOO.widget.Dialog YAHOO.widget.Panel YAHOO.widget.Panel YAHOO.widget.SimpleDialog
    195. 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();
    196. YUI http://josephj.com/training/nctu/yui-panel.html close fixedcenter modal underlay shadow’, ‘matte’ visible width { 1: 1, 2: 2}
    197. Questions?
    198. Thank You http://developer.yahoo.com/yui/ josephj@yahoo-inc.com

    + Joseph  ChiangJoseph Chiang, 7 months ago

    custom

    812 views, 1 favs, 2 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 812
      • 689 on SlideShare
      • 123 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 14
    Most viewed embeds
    • 120 views on http://josephj.com
    • 3 views on http://josephjiang.com

    more

    All embeds
    • 120 views on http://josephj.com
    • 3 views on http://josephjiang.com

    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?

    Tags