jQuery UI 1.8: The User Interface Library for jQuery


jQuery UI 1.8: The User Interface Library for jQuery
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Packed with examples and clear explanations of how to easily design elegant and     powerful front-end interfaces for your web applications
  • A section covering the widget factory including an in-depth example on how to build a custom jQuery UI widget
  • Updated code with significant changes and fixes to the previous edition

Book Details

Language : English
Paperback : 424 pages [ 235mm x 191mm ]
Release Date : August 2011
ISBN : 1849516529
ISBN 13 : 9781849516525
Author(s) : Dan Wellman
Topics and Technologies : All Books, Web Development, jQuery, Open Source, Web Development

Table of Contents

Preface
Chapter 1: Introducing jQuery UI
Chapter 2: The CSS Framework and Other Utilities
Chapter 3: Using the Tabs Widget
Chapter 4: The Accordion Widget
Chapter 5: The Dialog
Chapter 6: The Slider Widget
Chapter 7: The Datepicker Widget
Chapter 8: The Progressbar Widget
Chapter 9: The Button and Autocomplete Widgets
Chapter 10: Drag and Drop
Chapter 11: The Resizable Component
Chapter 12: The Selectables Component
Chapter 13: The Sortables Component
Chapter 14: UI Effects
Index
  • Chapter 1: Introducing jQuery UI
    • Downloading the library
    • Setting up a development environment
    • The structure of the library
    • ThemeRoller
    • Component categories
    • Browser support
    • Book examples
    • Library licensing
    • API introduction
      • Events and callbacks
      • Callback arguments
    • Summary
    • Chapter 2: The CSS Framework and Other Utilities
      • The files that make up the framework
        • jquery.ui.all.css
        • jquery.ui.base.css
        • jquery.ui.core.css
          • The individual component framework files
        • jquery.ui.theme.css
      • Linking to the required framework files
      • Using the framework classes
      • Containers
      • Interactions
      • Icons
      • Interaction cues
      • Switching themes quickly and easily
      • Overriding the theme
      • The position utility
        • Using the position utility
      • Collision avoidance
      • Positioning with a function
      • The widget factory
      • Creating the widget
      • The _create function
      • The common API methods
      • Adding custom methods
      • The widget style sheet
      • Using the widget
      • Summary
      • Chapter 3: Using the Tabs Widget
        • A basic tab implementation
        • Tab CSS framework classes
        • Applying a custom theme to the tabs
        • Configurable options
          • Selecting a tab
          • Disabling a tab
          • Transition effects
          • Collapsible tabs
        • Tab events
          • Binding to events
        • Using tab methods
          • Enabling and disabling tabs
          • Adding and removing tabs
          • Simulating clicks
          • Creating a tab carousel
          • Getting and setting options
        • AJAX tabs
        • Changing the URL of a remote tab's content
        • Reloading a remote tab
        • Displaying data obtained via JSONP
        • Summary
        • Chapter 4: The Accordion Widget
          • Accordion's structure
          • Styling the accordion
          • Configuring an accordion
            • Changing the trigger event
            • Changing the default active header
            • Filling the height of its container
            • Accordion animation
          • Accordion events
            • Using the change event
            • The changestart event
          • Accordion navigation
          • Accordion methods
            • Header activation
            • Resizing an accordion panel
          • Accordion interoperability
          • Summary
          • Chapter 5: The Dialog
            • Creating a basic dialog
            • Dialog options
              • Showing the dialog
              • The title of the dialog
              • Modality
              • Adding buttons
              • Enabling dialog animations
              • Configuring the dialog's dimensions
              • Stacking
            • Dialog's event model
            • Controlling a dialog programmatically
              • Toggling the dialog
            • Getting data from the dialog
            • Dialog interoperability
            • Creating a dynamic image-based dialog
            • Summary
            • Chapter 6: The Slider Widget
              • Implementing a slider
              • Custom styling
              • Configurable options
                • Creating a vertical slider
                • Minimum and maximum values
                • Slider steps
                • Slider animation
                • Setting the slider's value
                • Using multiple handles
                • The range element
              • Using slider's event API
              • Slider methods
              • Practical uses
              • A color slider
              • Summary
              • Chapter 7: The Datepicker Widget
                • The default datepicker
                • Configurable options of the datepicker
                  • Basic options
                  • Minimum and maximum dates
                  • Changing the elements in the datepicker UI
                  • Adding a trigger button
                  • Configuring alternative animations
                  • Multiple months
                  • Changing the date format
                  • Updating an additional input element
                  • Localization
                  • Callback properties
                • Utility methods
                • Date picking methods
                  • Selecting a date programmatically
                  • Showing the datepicker in a dialog box
                • An AJAX datepicker
                • Summary
                • Chapter 8: The Progressbar Widget
                  • The default progressbar implementation
                  • Progressbar's configuration options
                    • Setting progressbar's value
                  • Progressbar's event API
                  • Progressbar methods
                  • User initiated progress
                  • Rich uploads with progressbar
                  • Summary
                  • Chapter 9: The Button and Autocomplete Widgets
                    • The button widget
                      • Standard implementations
                      • Theming
                      • Configurable options
                      • Button icons
                      • Input icons
                      • Button events
                      • Buttonsets
                        • Checkbox buttonsets
                        • Radio buttonsets
                      • Button methods
                    • The autocomplete widget
                      • Working with local data sources
                        • Using an array of objects as the data source
                      • Configurable autocomplete options
                        • Configuring minimum length
                        • Appending the suggestion list to an alternative element
                      • Autocomplete events
                      • Autocomplete methods
                      • Working with remote data sources
                        • Using a string as the value of the source option
                        • Using a function as the value of the source option
                      • Displaying HTML in the list of suggestions
                    • Summary
                    • Chapter 10: Drag and Drop
                      • The deal with drag and droppables
                      • Draggables
                        • A basic drag implementation
                      • Configuring draggable options
                        • Using the configuration options
                        • Resetting dragged elements
                        • Drag handles
                        • Helper elements
                        • Constraining the drag
                        • Snapping
                      • Draggable event callbacks
                      • Draggable's methods
                      • Droppables
                      • Configuring droppables
                        • Configuring accepted draggables
                        • Tolerance
                      • Droppable event callbacks
                        • Scope
                        • Greedy
                      • Droppable methods
                      • A drag and drop game
                      • Summary
                      • Chapter 11: The Resizable Component
                        • A basic resizable
                        • Resizable options
                          • Configuring resize handles
                          • Adding additional handle images
                          • Defining size limits
                          • Resizing ghosts
                          • Containing the resize
                          • Handling aspect ratio
                          • Resizable animations
                          • Simultaneous resizing
                          • Preventing unwanted resizes
                        • Resizable callbacks
                        • Resizable methods
                        • Resizable tabs
                        • Summary
                        • Chapter 12: The Selectables Component
                          • Basic implementation
                          • Selectee class names
                          • Configurable options of the selectable component
                            • Filtering selectables
                            • Canceling the selection
                          • Selectable callbacks
                            • Working with vast amounts of selectables
                          • Selectable methods
                            • Refreshing selectables
                          • A selectable image viewer
                            • Styling the image selector
                            • Adding the behaviour
                          • Summary
                          • Chapter 13: The Sortables Component
                            • The default implementation
                            • Configuring sortable options
                              • Placeholders
                              • Sortable helpers
                              • Sortable items
                              • Connected lists
                            • Reacting to sortable events
                            • Connected callbacks
                            • Sortable methods
                              • Serializing
                            • Widget compatibility
                              • Adding draggables
                            • Summary
                            • Chapter 14: UI Effects
                              • The core effects file
                                • Using color animations
                                • Using class transitions
                                • Advanced easing
                              • Highlighting specified elements
                                • Additional effect arguments
                              • Bouncing
                              • Shaking an element
                                • Transferring an element's outline
                              • Element scaling
                              • Element explosion
                              • The puff effect
                              • The pulsate effect
                              • Dropping elements onto the page
                              • Sliding elements open or closed
                                • Using easing
                              • The window-blind effect
                              • Clipping elements
                              • Folding elements
                              • Summary

                              Dan Wellman

                              Dan Wellman is an author and frontend engineer living on the South Coast of the UK and working in London. By day he works for Skype and has a blast writing application-grade JavaScript. By night he writes books and tutorials focused mainly on frontend web development. He is also a staff writer for the Tuts+ arm of the Envato network, and occasionally writes for .Net magazine. He's the proud father of four amazing children, and the grateful husband of a wonderful wife.

                              Sorry, we don't have any reviews for this title yet.

                              Code Downloads

                              Download the code and support files for this book.


                              Submit Errata

                              Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                              Errata

                              - 4 submitted: last submission 30 Oct 2013

                              Errata type: Others | Page number: 91-92 | Errata date: 31-10-2012

                              In the list of required dependencies on pages 91 and 92 (in the code), the following file is required for the accordion:
                              jquery.ui.widget.js

                               

                              Errata type: Others | Page number: 58 | Errata date: 3-12-2012

                              Typo in code: Misspelled 'claculator' should be 'calculator'

                               

                               

                              Errata type: Others | Page number: 57 | Errata date: 3-12-2012

                              Note that although both appear to work correctly, the style sheet code supplied by PackTPub differs slightly form the code provided in the text.

                               

                               

                              Errata type: Others | Page number: 51 | Errata date: 3-12-2012

                              Code typo: 'this.element.this("li").bind({'
                              should read
                              'this.element.find("li").bind({'

                               

                               

                              Errata type: Code | Page number: 83 | Errata date: 16-07-2013

                              Replace:

                              <select id="fileChooser">

                                <option value="remoteTab1">remoteTab.txt</option>

                                <option value="remoteTab2">remoteTab2.txt</option>

                              </select>


                              With:


                                  <select id="fileChooser">

                                  <option value="remoteTab.txt">remoteTab1</option>

                                      <option value="remoteTab2.txt">remoteTab2</option>

                                  </select>

                              Errata type: Code | Page number: 81 | Errata date: August 7, 2013

                              This code snippet:

                              <script>
                                (function($){
                                  $("#set").click(function() {
                                    $("#myTabs")
                                      .tabs("option", "selected", parseInt($("#newIndex").val()));
                                  });
                                })(jQuery);

                              Should be:

                              <script>
                              (function($){
                                  $("#myTabs").tabs();
                                  $("#set").click(function() {
                                     $("#myTabs").tabs("option", "selected", parseInt($("#newIndex").val()));
                                  });
                              })(jQuery);
                              </script>

                              Sample chapters

                              You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                              Frequently bought together

                              jQuery UI 1.8: The User Interface Library for jQuery +    jQuery UI Cookbook =
                              50% Off
                              the second eBook
                              Price for both: ₨184.80

                              Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                              What you will learn from this book

                              • How the CSS framework consistently themes the widgets and how these styles can be used in your own code
                              • Create a custom jQuery UI widget using the widget library
                              • The underlying mark-up required by different components, and how each widget or interaction helper is initialized
                              • Configure the different components, and the different options that each component uses
                              • Work with each widget programmatically using its methods and event hooks
                              • Practical examples of how each component can be used
                              • Add flair to your interface with animation effects

                              In Detail

                              jQuery UI, the official suite of plugins for the jQuery JavaScript library, gives you a solid platform on which to build rich and engaging interfaces with maximum compatibility, stability, and a minimum of time and effort.

                              jQuery UI has a series of ready-made user interface widgets and a comprehensive set of core interaction helpers to reduce the amount of code that you need to write to take a project from conception to completion.

                              jQuery UI 1.8: The User Interface Library for jQuery has been specially revised for version 1.8 of jQuery UI. It is written to maximize your experience with the library by breaking down each component and walking you through examples that progressively build upon your knowledge, taking you from beginner to advanced usage in a series of easy-to-follow steps.

                              Throughout the book, you'll learn how each component can be initialized in a basic default implementation and then customize and configure each component to tailor it to your application. You'll look at the configuration options and the methods exposed by each component's API to see how these can be used to bring out the best of the library. Each chapter will also show you the custom events fired by the component covered and how these events can be intercepted and acted upon.

                              Approach

                              An example-based approach leads you step-by-step through the implementation and customization of each library component and its associated resources. Reference tables of each configuration option, method, and event for each component are provided, alongside detailed explanations of how each widget is used.

                              Who this book is for

                              This book is for front-end designers and developers who need to quickly learn how to use jQuery UI. To get the most out of this book you should have a good working knowledge of HTML, CSS, and JavaScript, and should ideally be comfortable using jQuery.

                              Code Download and Errata
                              Packt Anytime, Anywhere
                              Register Books
                              Print Upgrades
                              eBook Downloads
                              Video Support
                              Contact Us
                              Awards Voting Nominations Previous Winners
                              Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                              Resources
                              Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software