Trang chủ » Books » [Ebook] Jquery Mobile CookBook

[Ebook] Jquery Mobile CookBook


Jquery Mobile CookBook

Table of Contents
Preface  1
Chapter 1: Get Rolling  7
Introduction  7
Writing your first jQuery Mobile application  9
Using JS Bin to create a simple application  12
Chapter 2: Pages and Dialogs  17
Introduction  17
Writing a single-page template application  18
Writing a multi-page template application  22
Prefetching pages for faster navigation  25
Using the DOM cache to improve performance  29
Custom styling a dialog  32
Using CSS to create a bouncing page transition  36
Using JS to create a slide and fade page transition  40
Using data-url to handle the login page navigation  44
Using History API to create a custom error pop up  48
Chapter 3: Toolbars  55
Introduction  55
Using fullscreen fixed toolbars  55
Using persistent navbars in toolbars   59
Customizing the header with multiple buttons  64
Adding a customized round button to the header  66
Adding an image to the header  69
Adding a customized back button  70
Adding a layout grid to the footer  73
Chapter 4: Buttons and Content Formatting  77
Introduction  77
Scripting a dynamically added button  78
Using a custom icon in a button  80
Adding a custom icon sprite  83
Replacing the default icon sprite  86
Using alternate icons in a collapsible  89
Creating a nested accordion  92
Creating a custom layout grid  94
Using XML content  96
Using JSON content  99
Chapter 5: Forms  105
Introduction  105
Native styling of form controls  105
Disabling text controls  108
Grouping radio buttons in a grid  110
Customizing a checkbox group  113
Creating dynamic flip switch and slider controls  117
Using options to auto-initialize a select menu  120
Validating forms  123
Submitting a form using POST  126
Fetching data using GET  130
Creating an accessible form  133
Chapter 6: List Views  137
Introduction  137
Using inset and non-inset lists  138
Creating a custom numbered list  140
Using a nested list  142
Using a read-only nested list  145
Formatting content in a list  147
Using a split button list  150
Using image icons  154
Creating a custom search filter  155
Modifying a list with JavaScript  159
Chapter 7: Configurations  163
Introduction  163
Configuring the active classes  163
Configuring ajaxEnabled  167
Configuring autoInitializePage  169
Configuring the default transitions  170
Configuring ignoreContentEnabled  172
Configuring the page loading and error messages  174
Configuring the default namespace  176
Configuring hashListeningEnabled and subPageUrlKey  178
Configuring pushStateEnabled and linkBindingEnabled  180
Chapter 8: Events  183
Introduction  183
Using orientation events  183
Using scroll events  185
Using touch events  186
Virtual mouse events  190
Page initialization events  194
Page load and remove events  196
Page change events  201
Page transition and animation events  205
Using layout events  210
Chapter 9: Methods and Utilities  213
Introduction  213
Using loadPage() to load a page  213
Using changePage() to change a page  216
Using jqmData() and jqmRemoveData()  220
Using jqmEnhanceable()  222
Using jqmHijackable  224
Using $.mobile.base  226
Parsing an URL  228
Using $.mobile.path utility methods  231
Using silent scrolling  235
Chapter 10: The Theme Framework  239
Introduction  239
Theming a nested list  239
Using a custom background  242
Using custom fonts  244
Styling corners  247
Overriding the global Active State theme   249
Overriding an existing swatch  252
Using the ThemeRoller tool to create a swatch  255
Chapter 11: HTML5 and jQuery Mobile  261
Introduction  261
Using the new HTML5 semantics  262
Improving speed and taking your application offline  265
Using Web Workers for intensive tasks  270
Using local and session storage  273
2D drawing with Canvas  277
Applying Gaussian blur on a SVG image  279
Tracking your location with the Geolocation API  282
Playing music with the <audio> element  284
Viewing videos with the <video> element  286
Index  289

Download Here

Advertisements

Bình luận

Mời bạn điền thông tin vào ô dưới đây hoặc kích vào một biểu tượng để đăng nhập:

WordPress.com Logo

Bạn đang bình luận bằng tài khoản WordPress.com Đăng xuất / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Đăng xuất / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Đăng xuất / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Đăng xuất / Thay đổi )

Connecting to %s