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

Controlling a dialog programmatically


The dialog requires few methods in order to function. The full list of the methods we can call on a dialog is as follows:

Method

Used to

close

Close or hide the dialog.

destroy

Permanently disable the dialog. The destroy method for a dialog works in a slightly different way than it does for the other widgets we've seen so far. Instead of just returning the underlying HTML to its original state, the dialog's destroy method also hides it.

disable

Temporarily disable the dialog.

enable

Enable the dialog if it has been disabled.

isOpen

Determine whether a dialog is open or not.

moveToTop

Move the specified dialog to the top of the stack.

open

Open the dialog.

option

Get or set any configurable option after the dialog has been initialized.

Toggling the dialog

We first take a look at opening the widget, which can be achieved with the simple use of the open method. Let's revisit dialog3.html in which the autoOpen option was set to false, so...

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 €18.99/month. Cancel anytime
Modal Close icon
Modal Close icon