SlideShare ist ein Scribd-Unternehmen logo
1 von 249
Downloaden Sie, um offline zu lesen
Web 2.0
                  YUI



http://www.slideshare.net/josephj/josephj-yui-nctu

                                                     2009/3/10 @ NCTU
                                                              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
Yahoo! Course
Yahoo! Course
YDN       3/13 @


• + API
•          API

• YAP
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/
1. HTML
 Yahoo!
<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>
yhtw_masthead




ykpmt

ykpsb


ykpimt                   ykpadv




ykpimqa         ykpimr




                         ykpug


ykpiht          ykpiht
ykpsb


• ykp      +    prefix
• sb    search box
•       inc/search_box.php
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>
1        HTML                            3 Mins
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;
2. YUI Grids
               DIV + CSS

http://developer.yahoo.com/yui/grids/builder/
YUI Grid Builder




http://developer.yahoo.com/yui/grids/builder/
950px




                   240px




50%, 50%
3. 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.
3    YUI Connection
http://josephj.com/training/nctu/yui-ajax.html
4. 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.
4     YUI Get Utility
http://josephj.com/training/nctu/yui-get.html
5. YUI
5     YUI
http://josephj.com/training/nctu/yui-menu.html

  1.    new
     YAHOO.widget.MenuBar([          id]);
            YUI
  2.             render()
5   YUI
http://josephj.com/training/nctu/yui-menu.html



                          (true   false)
  autosubmenudisplay


      hidedelay
                             n

                          (true   false)
       lazyload
6. YUI
         UI
YUI Button
HTML

            YUI Button
6     YUI
http://josephj.com/training/nctu/yui-button.html

   1.     new YAHOO.widget.Button([
        id]);
6     YUI
http://josephj.com/training/nctu/yui-button.html

   1.     new YAHOO.widget.Button([
        id]);
7. 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
7        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();
7        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

Weitere ähnliche Inhalte

Ähnlich wie YUI Introduction @ NCTU

Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18Pierre Joye
 
Next Generation Web Attacks – HTML 5, DOM(L3) and XHR(L2)
Next Generation Web Attacks – HTML 5, DOM(L3) and XHR(L2)Next Generation Web Attacks – HTML 5, DOM(L3) and XHR(L2)
Next Generation Web Attacks – HTML 5, DOM(L3) and XHR(L2)Shreeraj Shah
 
[SSS 2nd] 빅포게임즈 HTML 유무선연동
[SSS 2nd] 빅포게임즈 HTML 유무선연동[SSS 2nd] 빅포게임즈 HTML 유무선연동
[SSS 2nd] 빅포게임즈 HTML 유무선연동GAMENEXT Works
 
Extending XForms with Server-Side Functionality
Extending XForms with Server-Side FunctionalityExtending XForms with Server-Side Functionality
Extending XForms with Server-Side FunctionalityMarkku Laine
 
Polysource It Profile
Polysource It ProfilePolysource It Profile
Polysource It Profileelenarys
 
Poly Source It Profile
Poly Source It ProfilePoly Source It Profile
Poly Source It Profilemoseskhedi
 
Cross platform mobile web apps
Cross platform mobile web appsCross platform mobile web apps
Cross platform mobile web appsJames Pearce
 
HTML5 and the dawn of rich mobile web applications pt 1
HTML5 and the dawn of rich mobile web applications pt 1HTML5 and the dawn of rich mobile web applications pt 1
HTML5 and the dawn of rich mobile web applications pt 1James Pearce
 
Polysource-IT Profile
Polysource-IT ProfilePolysource-IT Profile
Polysource-IT ProfileHelen
 
Polysource-IT Profile
Polysource-IT ProfilePolysource-IT Profile
Polysource-IT ProfileHelen
 
Real-time Web with Rails and XMPP
Real-time Web with Rails and XMPPReal-time Web with Rails and XMPP
Real-time Web with Rails and XMPPLi Cai
 
Mozilla In Malaysia
Mozilla In MalaysiaMozilla In Malaysia
Mozilla In MalaysiaGen Kanai
 
Bar Camp Auckland - Mongo DB Presentation BCA4
Bar Camp Auckland - Mongo DB Presentation BCA4Bar Camp Auckland - Mongo DB Presentation BCA4
Bar Camp Auckland - Mongo DB Presentation BCA4John Ballinger
 
Krug Fat Client
Krug Fat ClientKrug Fat Client
Krug Fat ClientPaul Klipp
 
HTML, Javascript and AJAX
HTML, Javascript and AJAXHTML, Javascript and AJAX
HTML, Javascript and AJAXWan Leung Wong
 
Lotusphere 2007 AD401 LEVERAGING AJAX FRAMEWORKS TO BUILD IBM LOTUS DOMINO WE...
Lotusphere 2007 AD401 LEVERAGING AJAX FRAMEWORKS TO BUILD IBM LOTUS DOMINO WE...Lotusphere 2007 AD401 LEVERAGING AJAX FRAMEWORKS TO BUILD IBM LOTUS DOMINO WE...
Lotusphere 2007 AD401 LEVERAGING AJAX FRAMEWORKS TO BUILD IBM LOTUS DOMINO WE...dominion
 

Ähnlich wie YUI Introduction @ NCTU (20)

Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18Webdevcon Keynote hh-2012-09-18
Webdevcon Keynote hh-2012-09-18
 
The State of JavaScript
The State of JavaScriptThe State of JavaScript
The State of JavaScript
 
Next Generation Web Attacks – HTML 5, DOM(L3) and XHR(L2)
Next Generation Web Attacks – HTML 5, DOM(L3) and XHR(L2)Next Generation Web Attacks – HTML 5, DOM(L3) and XHR(L2)
Next Generation Web Attacks – HTML 5, DOM(L3) and XHR(L2)
 
[SSS 2nd] 빅포게임즈 HTML 유무선연동
[SSS 2nd] 빅포게임즈 HTML 유무선연동[SSS 2nd] 빅포게임즈 HTML 유무선연동
[SSS 2nd] 빅포게임즈 HTML 유무선연동
 
Extending XForms with Server-Side Functionality
Extending XForms with Server-Side FunctionalityExtending XForms with Server-Side Functionality
Extending XForms with Server-Side Functionality
 
PHP at Yahoo!
PHP at Yahoo!PHP at Yahoo!
PHP at Yahoo!
 
Polysource It Profile
Polysource It ProfilePolysource It Profile
Polysource It Profile
 
Poly Source It Profile
Poly Source It ProfilePoly Source It Profile
Poly Source It Profile
 
Cross platform mobile web apps
Cross platform mobile web appsCross platform mobile web apps
Cross platform mobile web apps
 
HTML5 and the dawn of rich mobile web applications pt 1
HTML5 and the dawn of rich mobile web applications pt 1HTML5 and the dawn of rich mobile web applications pt 1
HTML5 and the dawn of rich mobile web applications pt 1
 
Polysource-IT Profile
Polysource-IT ProfilePolysource-IT Profile
Polysource-IT Profile
 
Polysource-IT Profile
Polysource-IT ProfilePolysource-IT Profile
Polysource-IT Profile
 
Real-time Web with Rails and XMPP
Real-time Web with Rails and XMPPReal-time Web with Rails and XMPP
Real-time Web with Rails and XMPP
 
resume-jake-miles
resume-jake-milesresume-jake-miles
resume-jake-miles
 
resume-jake-miles
resume-jake-milesresume-jake-miles
resume-jake-miles
 
Mozilla In Malaysia
Mozilla In MalaysiaMozilla In Malaysia
Mozilla In Malaysia
 
Bar Camp Auckland - Mongo DB Presentation BCA4
Bar Camp Auckland - Mongo DB Presentation BCA4Bar Camp Auckland - Mongo DB Presentation BCA4
Bar Camp Auckland - Mongo DB Presentation BCA4
 
Krug Fat Client
Krug Fat ClientKrug Fat Client
Krug Fat Client
 
HTML, Javascript and AJAX
HTML, Javascript and AJAXHTML, Javascript and AJAX
HTML, Javascript and AJAX
 
Lotusphere 2007 AD401 LEVERAGING AJAX FRAMEWORKS TO BUILD IBM LOTUS DOMINO WE...
Lotusphere 2007 AD401 LEVERAGING AJAX FRAMEWORKS TO BUILD IBM LOTUS DOMINO WE...Lotusphere 2007 AD401 LEVERAGING AJAX FRAMEWORKS TO BUILD IBM LOTUS DOMINO WE...
Lotusphere 2007 AD401 LEVERAGING AJAX FRAMEWORKS TO BUILD IBM LOTUS DOMINO WE...
 

Mehr von Joseph Chiang

不断归零的前端人生 - 2016 中国软件开发者大会
不断归零的前端人生 - 2016 中国软件开发者大会不断归零的前端人生 - 2016 中国软件开发者大会
不断归零的前端人生 - 2016 中国软件开发者大会Joseph Chiang
 
Automatic Functional Testing with Selenium and SauceLabs
Automatic Functional Testing with Selenium and SauceLabsAutomatic Functional Testing with Selenium and SauceLabs
Automatic Functional Testing with Selenium and SauceLabsJoseph Chiang
 
From Hacker to Programmer (w/ Webpack, Babel and React)
From Hacker to Programmer (w/ Webpack, Babel and React)From Hacker to Programmer (w/ Webpack, Babel and React)
From Hacker to Programmer (w/ Webpack, Babel and React)Joseph Chiang
 
JavaScript Code Quality
JavaScript Code QualityJavaScript Code Quality
JavaScript Code QualityJoseph Chiang
 
前端的未來 - 前端工程實務訓練
前端的未來 - 前端工程實務訓練前端的未來 - 前端工程實務訓練
前端的未來 - 前端工程實務訓練Joseph Chiang
 
Performance 入門 - 前端工程開發實務訓練
Performance 入門 - 前端工程開發實務訓練Performance 入門 - 前端工程開發實務訓練
Performance 入門 - 前端工程開發實務訓練Joseph Chiang
 
Debugging - 前端工程開發實務訓練
 Debugging - 前端工程開發實務訓練 Debugging - 前端工程開發實務訓練
Debugging - 前端工程開發實務訓練Joseph Chiang
 
Javascript 入門 - 前端工程開發實務訓練
Javascript 入門 - 前端工程開發實務訓練Javascript 入門 - 前端工程開發實務訓練
Javascript 入門 - 前端工程開發實務訓練Joseph Chiang
 
Node.js 入門 - 前端工程開發實務訓練
Node.js 入門 - 前端工程開發實務訓練Node.js 入門 - 前端工程開發實務訓練
Node.js 入門 - 前端工程開發實務訓練Joseph Chiang
 
前端工程開發實務訓練
前端工程開發實務訓練前端工程開發實務訓練
前端工程開發實務訓練Joseph Chiang
 
YUI 教學 - 前端工程開發實務訓練
YUI 教學 - 前端工程開發實務訓練YUI 教學 - 前端工程開發實務訓練
YUI 教學 - 前端工程開發實務訓練Joseph Chiang
 
CSS 入門 - 前端工程開發實務訓練
CSS 入門 - 前端工程開發實務訓練CSS 入門 - 前端工程開發實務訓練
CSS 入門 - 前端工程開發實務訓練Joseph Chiang
 
HTML 入門 - 前端工程開發實務訓練
HTML 入門 - 前端工程開發實務訓練HTML 入門 - 前端工程開發實務訓練
HTML 入門 - 前端工程開發實務訓練Joseph Chiang
 
模块加载策略 - 2012 SDCC, 北京
模块加载策略 - 2012 SDCC, 北京模块加载策略 - 2012 SDCC, 北京
模块加载策略 - 2012 SDCC, 北京Joseph Chiang
 
YUI is Sexy (for JSDC.tw)
YUI is Sexy (for JSDC.tw)YUI is Sexy (for JSDC.tw)
YUI is Sexy (for JSDC.tw)Joseph Chiang
 
YUI is Sexy - 使用 YUI 作為開發基礎
YUI is Sexy - 使用 YUI 作為開發基礎YUI is Sexy - 使用 YUI 作為開發基礎
YUI is Sexy - 使用 YUI 作為開發基礎Joseph Chiang
 

Mehr von Joseph Chiang (20)

不断归零的前端人生 - 2016 中国软件开发者大会
不断归零的前端人生 - 2016 中国软件开发者大会不断归零的前端人生 - 2016 中国软件开发者大会
不断归零的前端人生 - 2016 中国软件开发者大会
 
Let's Redux!
Let's Redux!Let's Redux!
Let's Redux!
 
Automatic Functional Testing with Selenium and SauceLabs
Automatic Functional Testing with Selenium and SauceLabsAutomatic Functional Testing with Selenium and SauceLabs
Automatic Functional Testing with Selenium and SauceLabs
 
From Hacker to Programmer (w/ Webpack, Babel and React)
From Hacker to Programmer (w/ Webpack, Babel and React)From Hacker to Programmer (w/ Webpack, Babel and React)
From Hacker to Programmer (w/ Webpack, Babel and React)
 
JavaScript Promise
JavaScript PromiseJavaScript Promise
JavaScript Promise
 
F2E for Enterprise
F2E for EnterpriseF2E for Enterprise
F2E for Enterprise
 
JavaScript Code Quality
JavaScript Code QualityJavaScript Code Quality
JavaScript Code Quality
 
F2E, the Keystone
F2E, the KeystoneF2E, the Keystone
F2E, the Keystone
 
前端的未來 - 前端工程實務訓練
前端的未來 - 前端工程實務訓練前端的未來 - 前端工程實務訓練
前端的未來 - 前端工程實務訓練
 
Performance 入門 - 前端工程開發實務訓練
Performance 入門 - 前端工程開發實務訓練Performance 入門 - 前端工程開發實務訓練
Performance 入門 - 前端工程開發實務訓練
 
Debugging - 前端工程開發實務訓練
 Debugging - 前端工程開發實務訓練 Debugging - 前端工程開發實務訓練
Debugging - 前端工程開發實務訓練
 
Javascript 入門 - 前端工程開發實務訓練
Javascript 入門 - 前端工程開發實務訓練Javascript 入門 - 前端工程開發實務訓練
Javascript 入門 - 前端工程開發實務訓練
 
Node.js 入門 - 前端工程開發實務訓練
Node.js 入門 - 前端工程開發實務訓練Node.js 入門 - 前端工程開發實務訓練
Node.js 入門 - 前端工程開發實務訓練
 
前端工程開發實務訓練
前端工程開發實務訓練前端工程開發實務訓練
前端工程開發實務訓練
 
YUI 教學 - 前端工程開發實務訓練
YUI 教學 - 前端工程開發實務訓練YUI 教學 - 前端工程開發實務訓練
YUI 教學 - 前端工程開發實務訓練
 
CSS 入門 - 前端工程開發實務訓練
CSS 入門 - 前端工程開發實務訓練CSS 入門 - 前端工程開發實務訓練
CSS 入門 - 前端工程開發實務訓練
 
HTML 入門 - 前端工程開發實務訓練
HTML 入門 - 前端工程開發實務訓練HTML 入門 - 前端工程開發實務訓練
HTML 入門 - 前端工程開發實務訓練
 
模块加载策略 - 2012 SDCC, 北京
模块加载策略 - 2012 SDCC, 北京模块加载策略 - 2012 SDCC, 北京
模块加载策略 - 2012 SDCC, 北京
 
YUI is Sexy (for JSDC.tw)
YUI is Sexy (for JSDC.tw)YUI is Sexy (for JSDC.tw)
YUI is Sexy (for JSDC.tw)
 
YUI is Sexy - 使用 YUI 作為開發基礎
YUI is Sexy - 使用 YUI 作為開發基礎YUI is Sexy - 使用 YUI 作為開發基礎
YUI is Sexy - 使用 YUI 作為開發基礎
 

Kürzlich hochgeladen

Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...itnewsafrica
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 

Kürzlich hochgeladen (20)

Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 

YUI Introduction @ NCTU

  • 1. Web 2.0 YUI http://www.slideshare.net/josephj/josephj-yui-nctu 2009/3/10 @ NCTU 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.
  • 8. 2008.5 ITHome http://farm4.static.flickr.com/3251/3017901989_9252512e77_o.jpg
  • 11. YDN 3/13 @ • + API • API • YAP
  • 13. Agenda • F2E
  • 14. Agenda • F2E • YUI
  • 15. Agenda • F2E • YUI •
  • 17.
  • 18. HTML / CSS / JavaScript
  • 19. HTML / CSS / JavaScript •
  • 20. HTML / CSS / JavaScript • •
  • 21.
  • 23. no.
  • 26. (X)HTML Specification server
  • 27. (X)HTML Specification Implementation server
  • 28. (X)HTML Specification Implementation Bugs server
  • 29. (X)HTML Specification Implementation Bugs [ Theory / Practice ] server
  • 30. 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
  • 31. 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
  • 32. 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
  • 33. 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
  • 34.
  • 35. usability, internationalization, localization, visual design, accessibility, information architecture, security, build processes, performance, benchmarking, devices, portability
  • 36. Yahoo
  • 39. TabView JavaScript
  • 40. No Image Not Loaded
  • 41.
  • 42. Screen <link rel=quot;stylesheetquot; type=quot;text/cssquot; href=quot;.../i8/ykp_qack_min_20080707.cssquot; media=quot;screenquot;>
  • 43. Print <link rel=quot;stylesheetquot; type=quot;text/cssquot; href=quot;.../i8/ykp_print_min_20080707.cssquot; media=quot;printquot;>
  • 44. 15
  • 45. from Lifted ©2007 Pixar Animation Studios
  • 46. ...
  • 48. UI UI YUI UI
  • 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. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
  • 59. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
  • 60. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
  • 61. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
  • 62. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
  • 63. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
  • 64. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
  • 65. UI UI YUI UI Button Def. But. Menu Label Text Field Label Label Label Text Area click me
  • 66. iPhone YUI
  • 71. Button + Menu + Container + ... = RTE Editor
  • 72.
  • 73.
  • 74.
  • 75.
  • 77. YUI YUI CSS YUI YUI
  • 79. 1. YUI YAHOO.util.* : Web 2.0 • AJAX AJAX JSON
  • 80. 1. YUI YAHOO.util.* : Web 2.0 • AJAX AJAX JSON •
  • 81. 1. YUI YAHOO.util.* : Web 2.0 • AJAX AJAX JSON • • Cookie Selector
  • 82. Browser History Manager AJAX http://tw.knowledge.yahoo.com/my/my_trace?show=AC00668153
  • 83.
  • 84.
  • 87.
  • 88.
  • 89.
  • 90. 2. YUI YAHOO.widget.* : • • • • • • HTML • • Slider • • • • • • •
  • 96.
  • 97.
  • 99. 4. YUI CSS • Reset
  • 100. 4. YUI CSS • Reset • Fonts
  • 101. 4. YUI CSS • Reset • Fonts • Grids DIVs+CSS
  • 102.
  • 105. grids.css fonts.css reset.css
  • 106. 950px 240px 50%, 50%
  • 107. doc3 = 989px .yui-t6 = Right, 300px
  • 108. doc4 = 974px .yui-t3 = Left, 300px
  • 109. YUI
  • 110.
  • 112. 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
  • 113. YUI 300
  • 114.
  • 115.
  • 116. [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
  • 117.
  • 118.
  • 119.
  • 120.
  • 121.
  • 122. -debug
  • 123. -min
  • 124.
  • 125. API
  • 126.
  • 127. YUI 50 YUI developer.yahoo.com/yui/theater
  • 128. YUI
  • 129.
  • 130.
  • 131.
  • 132.
  • 133.
  • 134.
  • 135. YUI OSDC
  • 137.
  • 138. +
  • 139. YUI
  • 140.
  • 141.
  • 142.
  • 143. YUI
  • 144.
  • 145.
  • 146.
  • 147.
  • 148.
  • 149.
  • 150.
  • 151.
  • 152.
  • 153.
  • 154.
  • 155.
  • 156.
  • 157.
  • 158.
  • 159.
  • 160. Q&A
  • 161. YUI
  • 162. YUI BSD License
  • 164.
  • 167. • Fasten Improvement • Fun • Innovation
  • 168. • Fasten Improvement • Fun • Innovation • Recruiting
  • 169. • Fasten Improvement • Fun • Innovation • Recruiting •
  • 170. • Fasten Improvement • Fun • Innovation • Recruiting • • YUI Contributor
  • 171. jQuery Prototype Dojo GWT
  • 172.
  • 173. JavaScript
  • 174. JavaScript •
  • 175. JavaScript • • JavaScript
  • 176. JavaScript • • JavaScript •
  • 177. JavaScript • • JavaScript • •
  • 178. JavaScript • • JavaScript • • • QA
  • 179. JavaScript • • JavaScript • • • QA •
  • 180. IDE
  • 181. IDE ...
  • 182. Aptana
  • 183.
  • 184. no.
  • 185. • ASP, PHP, RoR, Python, JAVA... • • 3rd Party
  • 186. YUI
  • 187. YUI http://www.wallpapergate.com/wallpaper22725.html http://josephj.com/training/nctu/
  • 189.
  • 190. <div id=”nav”> <div class=”hd”> <h2> </h2> </div> <div class=”bd”> <p> </p> </div> <div class=”ft”> <a href=”...”> ... </a> </div> </div>
  • 191. <div id=”nav”> <div class=”hd”> <h2> </h2> </div> <div class=”bd”> <p> </p> </div> <div class=”ft”> <a href=”...”> ... </a> </div> </div>
  • 192. <div id=”nav”> <div class=”hd”> <h2> </h2> </div> <div class=”bd”> ID <p> </p> </div> <div class=”ft”> <a href=”...”> ... </a> </div> </div>
  • 193. <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>
  • 194. yhtw_masthead ykpmt ykpsb ykpimt ykpadv ykpimqa ykpimr ykpug ykpiht ykpiht
  • 195. ykpsb • ykp + prefix • sb search box • inc/search_box.php
  • 196. 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>
  • 197. 1 HTML 3 Mins 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;
  • 198. 2. YUI Grids DIV + CSS http://developer.yahoo.com/yui/grids/builder/
  • 200. 950px 240px 50%, 50%
  • 201. 3. YUI AJAX Web 2.0 http://josephj.com/training/nctu/yui-ajax.html
  • 202. YUI AJAX YUI AJAX Connection Manager A
  • 203. YUI AJAX YUI AJAX Connection Manager 1. Request A
  • 204. YUI AJAX YUI AJAX Connection Manager 2. Request 1. Request A A
  • 205. YUI AJAX YUI AJAX Connection Manager 2. Request 1. Request A 3. A
  • 206. YUI AJAX YUI AJAX Connection Manager 2. Request 1. Request A 3. A 4.
  • 208. YUI AJAX AJAX 1. JavaScript Request A
  • 209. YUI AJAX AJAX 2. Request 1. JavaScript Request A A
  • 210. YUI AJAX AJAX 2. Request 1. JavaScript Request A 3. A
  • 211. YUI AJAX AJAX 2. Request 1. JavaScript Request A 3. A 4.
  • 212. 3 YUI Connection http://josephj.com/training/nctu/yui-ajax.html
  • 213. 4. YUI Get Utility http://josephj.com/training/nctu/yui-get.html
  • 215. JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com
  • 216. JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com <script src=”...”></script>
  • 217. JavaScript AJAX http://tw.yahoo.com http://tw.lifestyle.yahoo.com <script src=”...”></script> http://josephj.com/training/ncu-tsung/script.html
  • 218. 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
  • 219. 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
  • 220. 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
  • 221. JavaScript “ ”
  • 223. <script src=”http://api.flickr.com/services/rest/? method=flickr.photos.search&api_key=d498ec869768ecea276a7cb3906241d9&text= &format=json “></script>
  • 225. YUI Get Utility <script/> •
  • 226. YUI Get Utility <script/> • • YAHOO.util.Get.script(url)
  • 227. YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery...
  • 228. YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON
  • 229. YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON <link/> •
  • 230. YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON <link/> • • YAHOO.util.Get.css(url)
  • 231. YUI Get Utility <script/> • • YAHOO.util.Get.script(url) • ex1. YUI jQuery... • ex2. JSON <link/> • • YAHOO.util.Get.css(url) • ex.
  • 232. 4 YUI Get Utility http://josephj.com/training/nctu/yui-get.html
  • 233. 5. YUI
  • 234. 5 YUI http://josephj.com/training/nctu/yui-menu.html 1. new YAHOO.widget.MenuBar([ id]); YUI 2. render()
  • 235. 5 YUI http://josephj.com/training/nctu/yui-menu.html (true false) autosubmenudisplay hidedelay n (true false) lazyload
  • 236. 6. YUI UI
  • 237. YUI Button HTML YUI Button
  • 238. 6 YUI http://josephj.com/training/nctu/yui-button.html 1. new YAHOO.widget.Button([ id]);
  • 239. 6 YUI http://josephj.com/training/nctu/yui-button.html 1. new YAHOO.widget.Button([ id]);
  • 240. 7. YUI Web 2.0
  • 243. YUI Container YAHOO.widget.Dialog YAHOO.widget.Panel
  • 244. YUI Container YAHOO.widget.Dialog YAHOO.widget.Panel YAHOO.widget.Panel
  • 245. YUI Container YAHOO.widget.Dialog YAHOO.widget.Panel YAHOO.widget.Panel YAHOO.widget.SimpleDialog
  • 246. 7 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();
  • 247. 7 YUI http://josephj.com/training/nctu/yui-panel.html close fixedcenter modal underlay shadow’, ‘matte’ visible width { 1: 1, 2: 2}