jQuery UI 1.6: The User Interface Library for jQuery

There is a newer version of this book available - jQuery UI 1.7: The User Interface Library for jQuery
jQuery UI 1.6: The User Interface Library for jQuery
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Packed with examples and clear explanations to easily design elegant and powerful front-end interfaces for your web applications
  • Organize your interfaces with reusable widgets like accordions, date pickers, dialogs, sliders, tabs, and more
  • Enhance the interactivity of your pages by making elements drag and droppable, sortable, selectable, and resizable
  • No experience of jQuery UI expected, but familiarity with jQuery is required
  • Written and tested on jQuery UI 1.6 Release Candidate 2

Book Details

Language : English
Paperback : 440 pages [ 235mm x 191mm ]
Release Date : February 2009
ISBN : 1847195121
ISBN 13 : 9781847195128
Author(s) : Dan Wellman
Topics and Technologies : All Books, Web Development, jQuery, Open Source, Web Development

Table of Contents

Chapter 1: Introducing jQuery UI
Chapter 2: The CSS Framework
Chapter 3: Tabs
Chapter 4: The Accordion Widget
Chapter 5: The Dialog
Chapter 6: Slider
Chapter 7: Datepicker
Chapter 8: Progressbar
Chapter 9: Drag and Drop
Chapter 10: Resizing
Chapter 11: Selecting
Chapter 12: Sorting
Chapter 13: UI Effects
  • 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
    • The files that make up the framework
      • ui.all.css
      • ui.base.css
      • ui.core.css
      • The individual component framework files
      • 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
    • Summary
  • Chapter 3: Tabs
    • 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
    • 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
      • The changestart event
    • Accordion navigation
    • Accordion methods
      • Destruction
      • Header activation
    • Accordion interoperability
    • A del.icio.us accordion
    • Summary
  • Chapter 5: The Dialog
    • A basic dialog
    • Dialog options
      • Showing the dialog
      • Positioning the dialog
      • The title of the dialog
      • Modality
      • Adding buttons
      • Enabling dialog animations
      • Fixing IE6
      • Configuring the dialog's dimensions
      • Stacking
    • Dialog's event model
    • Controlling a dialog programmatically
      • Toggling the dialog
    • Getting data from the dialog
    • Dialog interoperability
    • A dynamic image-based dialog
    • Summary
  • Chapter 6: Slider
    • 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
    • Future uses
    • A color slider
    • Summary
  • Chapter 7: Datepicker
    • The default datepicker
    • Configurable options of the picker
      • Basic Options
      • Minimum and maximum dates
      • Changing 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
    • An AJAX datepicker
    • Summary
  • Chapter 8: Progressbar
    • The default progressbar implementation
    • Using progressbar's configuration option
    • Progressbar's event API
    • Progressbar methods
    • User initiated progress
    • Rich uploads with progressbar
    • Summary
  • Chapter 9: 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
    • Using draggable's methods
    • Droppables
    • Configuring droppables
      • Tolerance
    • Droppable event callbacks
      • Scope
      • Greedy
    • Droppable methods
    • A drag and drop game
    • Summary
  • Chapter 10: Resizing
    • A basic resizable
    • Resizable options
      • Configuring resize handles
      • Adding additional handle images
      • Defining size limits
      • Resize ghosts
      • Containing the resize
      • Handling the aspect ratio
      • Resizable animations
      • Simultaneous resizing
      • Preventing unwanted resizes
    • Resizable callbacks
    • Resizable methods
    • Resizable tabs
    • Summary
  • Chapter 11: Selecting
    • Basic implementation
    • Selectee class names
    • Configurable options of the selectable component
      • Filtering selectables
      • Cancelling the selection
    • Selectable callbacks
      • Working with vast amounts of selectables
    • Selectable methods
    • A selectable image viewer
      • Styling the image selector
    • Summary
  • Chapter 12: Sorting
    • The default implementation
    • Configuring sortable options
      • Placeholders
      • Sortable helpers
      • Sortable items
      • Connected lists
    • Reacting to sortable events
    • Connected callbacks
    • Sortable methods
    • Widget compatibility
      • Adding draggables
    • Sortable page widgets
      • The underlying page
      • Styling the page
      • The main script
      • Building the content boxes
      • Writing the cookie
      • Making the boxes sortable
      • Closing and restoring boxes
    • Summary
  • Chapter 13: 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
    • 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.


- 2 submitted: last submission 09 Oct 2012

Errata type: Typo | Page number: 10 | Errata date: 03 Apr 09

Second line missing double quote after id.


Errata type: Other | Page number: 12 | Errata date: 16 Apr 09

On Page 13, please delete paragraph 1 and the first list (both directly before 'The structure of the library' heading). On Page 12, in paragraph 2, please change the following text: This will be the root folder of our project and will be the location where we store all of the files that we're going to create. to: This will be the root folder of our project and will be the location where we store all of the example files from the code download. On page 12, directly after paragraph 2 please add the following new text: The jQuery UI library has recently changed substantially, and the examples used in this book do not function correctly with the current stable release. Therefore it is recommended that you use the accompanying code package, which can be found on the Packt website, as this contains jQuery UI 1.6 and jQuery 1.2.6. Once the code package has been downloaded, you should simply unpack it to the project folder that we just created.


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.6: The User Interface Library for jQuery +    Ext.NET Web Application Development =
50% Off
the second eBook
Price for both: $41.55

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

What you will learn from this book


  • Organize different sections of related content as tabs and accordins and save space on your page
  • Display messages, images, and interactive content like forms using the dialog widget
  • Use sliders for volume and color control of your applications by dynamically scrolling left and right, displaying different ranges
  • Allow your site visitors to select dates from the calendar using date picker widget
  • Enrich your interface with auto complete: start typing the first few letters of a name in your address book and the application will do the rest
  • Provide a drag-and-drop mechanism to let users directly rearrange elements around the page
  • Make a range of elements of a group selectable and take collective actions on them
  • Create a page with content boxes on it that can be sorted into various positions to suit the visitors personal preference
  • Add flair to your actions with animation effects

In Detail

Modern web application user interface design requires rapid development and proven results. jQuery UI, a trusted plugin for the jQuery JavaScript library, gives you a trusted 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, great-looking  user interface widgets and a comprehensive set of core interaction helpers designed to be implemented in a consistent and developer-friendly way. With all this, the amount of code that you need to write personally to take a project from conception to completion is drastically reduced

This book has been 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.

In this book, you’ll learn how each component can be initialized in a basic default implementation and then see how easy it is to customize its appearance and configure its behaviour to tailor it to the requirements of your application. You’ll look at the properties and methods exposed by each component’s API and see how these can be used to bring out the best in each component.

Events play a key role in any modern web applications if it is to meet the expected minimum requirements of interactivity and responsiveness, and each chapter will show you the custom events fired by each component and how these events can be intercepted and acted upon.


Create powerful front-end interfaces for your web applications with jQuery UI


An example-based approach leads you step-by-step through the implementation and customization of each library component and its associated resources in turn. To emphasize the way that jQuery UI takes the difficulty out of user interface design and implementation, each chapter ends with a ‘fun with’ section that puts together what you’ve learned throughout the chapter to make a usable and fun page. In these sections you’ll often get to experiment with the latest associated technologies like AJAX and JSON.

Who this book is for

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

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
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