Book description
Get more done faster with jQuery and JavaScript! Brad Dayley’s jQuery and JavaScript Phrasebook brings together 100+ instantly useful code snippets and idioms for performing a wide spectrum of common web application tasks. This hands-on guide gets straight to the essence of what’s new and important in jQuery and JavaScript, and what you need to know to build new web solutions or migrate existing sites to jQuery.
Building on JavaScript Phrasebook, Dayley presents carefully tested, flexible, adaptable code - all organized for quick lookup and easy use. Dayley’s coverage ranges from the basics to advanced jQuery capabilities, including jQueryUI widgets and mobile development. Coverage includes:
Basics, including selecting and manipulating HTML elements with jQuery Selector
Dynamically manipulating CSS values
Handling browser and DOM events
Performing validation
Server communication
REST, PHP, MySQL, AJAX, and JSON/XML data
Positioning web page elements and making them interactive
Using animation and other special effects
And much more
jQuery and JavaScript Phrasebook is the perfect quick reference for millions of web developers who want reliable solutions they can use right now -- with no distractions and no diversions!
Table of contents
- About This eBook
- Title Page
- Copyright Page
- Dedication
- Contents
- Acknowledgments
- About the Author
- We Want to Hear from You!
- Reader Services
- 1. Jumping into jQuery, JavaScript, and the World of Dynamic Web Development
-
2. Using the JavaScript Language
- JavaScript Syntax
- Defining and Accessing Data
- Defining Functions
-
Manipulating Strings
- Getting the Length of a String
- Finding What Character Is at a Specific Location in a String
- Converting Numbers to Strings
- Converting Strings to Numbers
- Combining Strings
- Changing String Case
- Splicing Strings
- Splitting Strings
- Checking to See If a String Contains a Substring
- Finding and Replacing Substrings Regardless of Case
- Manipulating Arrays
- Applying Logic
- Math Operations
- Working with Dates
- 3. Interacting with the Browser
- 4. Accessing HTML Elements
-
5. Manipulating the jQuery Object Set
- Getting DOM Objects from a jQuery Object Set
- Converting DOM Objects into jQuery Objects
- Iterating Through the jQuery Object Set Using .each()
- Using .map()
- Assigning Data Values to Objects
- Adding DOM Elements to the jQuery Object Set
- Removing Objects from the jQuery Object Set
- Filtering the jQuery Object Results
- 6. Capturing and Using Browser and User Events
- 7. Manipulating Web Page Elements Dynamically
- 8. Manipulating Web Page Layout Dynamically
-
9. Dynamically Working with Form Elements
- Getting and Setting Text Input Values
- Checking and Changing Check Box State
- Getting and Setting the Selected Option in a Radio Group
- Getting and Setting Select Values
- Getting and Setting Hidden Form Attributes
- Disabling Form Elements
- Showing/Hiding Form Elements
- Forcing Focus to and Away from Form Elements
- Controlling Form Submission
- 10. Building Web Page Content Dynamically
- 11. Adding jQuery UI Elements
- 12. Animation and Other Special Effects
- 13. Using AJAX to Communicate with Web Servers and Web Services
-
14. Implementing Mobile Web Sites with jQuery
-
Getting Started with jQuery Mobile
- Determining if the Page Is Being Viewed on a Mobile Device
- Detecting Mobile Screen Size
- Specifying Different Theme Swatches
- Handling New Mobile Events
- Changing Pages with jQuery Code
- Loading Mobile Pages without Displaying Them
- Defining the Viewport Meta Tag
- Configuring jQuery Mobile Default Settings
- Building Mobile Pages
- Implementing Mobile Sites with Multiple Pages
- Creating a Navbar
- Applying a Grid Layout
- Implementing Listviews
- Using Collapsible Blocks and Sets
- Adding Auxiliary Content to Panels
- Working with Popups
- Building Mobile-Friendly Tables
- Creating Mobile Forms
-
Getting Started with jQuery Mobile
- Index
Product information
- Title: jQuery and JavaScript Phrasebook
- Author(s):
- Release date: December 2013
- Publisher(s): Addison-Wesley Professional
- ISBN: None
You might also like
book
Beginning jQuery: From the Basics of jQuery to Writing your Own Plug-ins
Navigate the tricky issues around cross-browser inconsistencies and use jQuery to avoid wasting time fixing these …
book
Your First Week With Bootstrap
Bootstrap stands as one of the most popular, open-source, front-end frameworks on the Web. Since its …
book
PHP 7: Real World Application Development
Use new features of PHP 7 to solve practical, real-world problems faced by PHP developers like …
book
Mastering PHP 7
Effective, readable, and robust codes in PHP Key Features [*] Leverage the newest tools available in …