Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
jQuery UI 1.7: The User Interface Library for jQuery

You're reading from   jQuery UI 1.7: The User Interface Library for jQuery Build highly interactive web applications with ready-to-use widgets from the jQuery User Interface library

Arrow left icon
Product type Paperback
Published in Nov 2009
Publisher Packt
ISBN-13 9781847199720
Length 392 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (19) Chapters Close

jQuery UI 1.7
Credits
About the Author
About the Reviewers
Preface
1. Introducing jQuery UI FREE CHAPTER 2. The CSS Framework 3. Tabs 4. The Accordion Widget 5. The Dialog 6. Slider 7. Datepicker 8. Progressbar 9. Drag and Drop 10. Resizing 11. Selecting 12. Sorting 13. UI Effects Index

Using slider's event API


In addition to the options we saw earlier, there are an additional four options that can be used to define functions which are executed at different times during a slider interaction. Any callback functions we use are automatically passed the standard event object and an object representing the slider. The following table lists the event options we can use with slider:

Function

Usage

change

Called when the slider handle stops and its value has changed.

slide

Called every time the slider handle moves.

start

Called when the slider handle starts moving.

stop

Called when the slider handle stops.

Hooking into these built-in callback functions is extremely easy. Let's put a basic example together to see. Change the configuration object in slider10.html so that it appears as follows:

var sliderOpts = {
  start: function() {
		  
    $("#tip").fadeOut(function() {
      $(this).remove();
    });
  },
  change: function(e, ui) {
		    
    $("<div>").attr(...
lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
jQuery UI 1.7: The User Interface Library for jQuery
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon