Oreilly.jQuery.UI.Mar.2012.pdf

(10726 KB) Pobierz
806659433.009.png
806659433.010.png
jQuery UI
Eric Sarrion
Beijing
Cambridge
Farnham
Köln
Sebastopol
Tokyo
806659433.011.png 806659433.012.png 806659433.001.png 806659433.002.png 806659433.003.png 806659433.004.png 806659433.005.png 806659433.006.png
 
jQuery UI
by Eric Sarrion
Copyright © 2012 Eric Sarrion. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles ( http://my.safaribooksonline.com ) . For more information, contact our
corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com .
Editor: Simon St. Laurent
Production Editor: Rachel Steely
Copyeditor: Jasmine Perez
Proofreader: Jasmine Perez
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Robert Romano
Revision History for the First Edition:
2012-03-09 First release
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. jQuery UI , the image of a turnstone, and related trade dress are trademarks of
O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and author assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-1-449-31699-0
[LSI]
1331233105
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1.
Introduction to jQuery UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
jQuery UI Installation
1
Overview of jQuery UI
1
What Is a CSS Theme?
3
Which Files Should We Include in Our HTML Pages?
4
Uncompressed Files
4
Compressed Files
7
Change the CSS Theme
8
And Now?
9
2.
Tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Basic Principles of Tabs
11
Formatting Content
13
The tabs () Method
15
The tabs (options) Method
15
The tabs (“action”, params) Method
17
The bind () Method
17
Examples of Using Tabs
18
Dynamic Creation of Tabs
18
Modifying the Contents of a Tab Using Ajax
19
Transmitting the Information to the Server via Ajax
21
Using the Tabs add Method
22
Using the tabsadd Event
24
3.
Accordion Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
25
Basic Principles of Accordion Menus
25
Formatting Content
27
The accordion () Method
29
The accordion (options) Method
30
iii
806659433.007.png 806659433.008.png
Zgłoś jeśli naruszono regulamin