Josephj Open At Yahoo Nsysu2


Published on

  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Josephj Open At Yahoo Nsysu2

  1. 1. NSYSU MIS 2009/3/5 josephj
  2. 2. Hi! josephj • 2.5 F2E • 0.5 Evangelist • RD @josephj6802
  3. 3. 2008.5
  4. 4. Question 1
  5. 5. Open APIs Yahoo!
  6. 6. Open API AJAX API Open API
  7. 7. Yahoo! Format Flickr
  8. 8.
  9. 9. tags= &lang=en-us&format=rss_200
  10. 10. tags= &lang=en-us&format=php
  11. 11. <script src=” &format=json&jsoncallback=getFlickrData ”></script> tags=
  12. 12. tags=twopenhack08&format=lol
  13. 13. API Feed Schema
  14. 14. Service ...
  15. 15. JavaScript HTML ...
  16. 16. Schema Code
  17. 17. Pipes Remix Feed
  18. 18. RSS Feed Union
  19. 19. ... CLI
  20. 20. YQL Yahoo! Query Language
  21. 21. Yahoo!
  22. 22. Question 2
  23. 23. YUI Library Web2.0
  24. 24. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
  25. 25. YUI
  26. 26. iPhone YUI
  27. 27. Google Chrome ;)
  28. 28. Rich Text Editor
  29. 29. Accessbility
  30. 30. Library
  31. 31. 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 '<>' 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
  32. 32. UI
  33. 33. YUI Web OSDC
  34. 34. Carousel
  35. 35. +
  36. 36. YUI
  37. 37. YUI 300
  38. 38. IDE ...
  39. 39. Aptana
  40. 40. YUI
  41. 41. YUI BSD License
  42. 42. YUI
  43. 43. YUI
  44. 44. 1. YUI DIV & CSS Layout
  45. 45. 950px 240px 50%, 50%
  46. 46. YUI Grid Builder
  47. 47. 2. YUI
  48. 48. 2 YUI 1. new YAHOO.widget.MenuBar([ id]); YUI 2. render()
  49. 49. 2 YUI (true false) autosubmenudisplay hidedelay n (true false) lazyload
  50. 50. 3. YUI UI
  51. 51. YUI Button HTML YUI Button
  52. 52. 3 YUI 1. new YAHOO.widget.Button([ id]);
  53. 53. 4. YUI Web 2.0
  54. 54. YUI YAHOO.widget.Dialog YAHOO.widget.Panel YAHOO.widget.Panel YAHOO.widget.SimpleDialog
  55. 55. 4 YUI 1. var oPanel = new YAHOO.widget.Panel([ id], [ ]); #panel 2. oPanel.render(document.body) append 3. oButton.addListener(‘click’, onButtonClick) onButtonClick;
  56. 56. 4 YUI close fixedcenter modal underlay shadow’, ‘matte’ visible width { 1: 1, 2: 2}
  57. 57. 5. YUI Get
  58. 58.
  59. 59. <script src=” &format=json”></script> tags=
  60. 60. 5 YUI Get
  61. 61. Question 3
  62. 62. Application Platform YAP
  63. 63. Yahoo!
  64. 64. Mail/Contact API Local Yahoo!
  65. 65. Yahoo! Pat Jameson Pat Jameson Pat Jameson
  66. 66. Y!Sports +
  67. 67. YAP Developer Studio YAP
  68. 68. Yahoo! Cool
  69. 69. More?
  70. 70. BluePrint
  71. 71. SearchMonkey
  72. 72. Fire Eagle
  73. 73. OpenID SSO
  74. 74. Quick Summary • Open APIs Yahoo! • YUI Web 2.0 • YAP Yahoo! Yahoo! Powerful
  75. 75. Questions?
  76. 76. Thank You