Sams Teach Yourself jQuery and JavaScript in 24 Hours

Book description

Learn jQuery and JavaScript in 24 one-hour lessons

Sams Teach Yourself jQuery and JavaScript in 24 Hours helps you build dynamic single-page web apps that deliver the rich experiences your users want.

This book’s straightforward, step-by-step approach shows you how to create effects, animations, lists, complex forms, and more. In just a few hours, you’ll be building great user interfaces for any device, even the newest smartphones and tablets. Every lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success.

  • Step-by-step instructions carefully walk you through the most common jQuery and JavaScript development tasks.
  • Practical, hands-on examples show you how to apply what you learn.
  • Quizzes and exercises help you test your knowledge and stretch your skills
  • Notes and tips point out shortcuts and solutions

Learn how to…

  • Quickly start building web pages with jQuery and JavaScript
  • Master jQuery syntax, logic, functions, and objects
  • Efficiently access, manipulate, and navigate DOM elements
  • Build highly interactive web pages with events and event handlers
  • Implement cookies, pop-up windows, and timers
  • Create animations, special effects, and image galleries
  • Construct, interact with, and validate forms
  • Use advanced elements, such as table filters, custom dialogs, and dynamic sparklines
  • Access server-side data via AJAX
  • Work with data using JSON, XML, queues, and binding
  • Build superior user interfaces more quickly with jQuery UI
  • Add richer page interactions with jQuery UI Widgets
  • Create mobile-friendly pages with jQuery Mobile
  • Customize your mobile pages with jQuery Mobile ThemeRoller

Contents at a Glance

PART I: Introduction to jQuery and JavaScript Development

HOUR 1: Intro to Dynamic Web Programming

HOUR 2: Debugging jQuery and JavaScript Web Pages

HOUR 3: Understanding Dynamic Web Page Anatomy

HOUR 4: Adding CSS/CSS3 Styles to Allow Dynamic Design and Layout

HOUR 5: Jumping into jQuery and JavaScript Syntax

HOUR 6: Understanding and Using JavaScript Objects

PART II: Implementing jQuery and JavaScript in Web Pages

HOUR 7: Accessing DOM Elements Using JavaScript and jQuery Objects

HOUR 8: Navigating and Manipulating jQuery Objects and DOM Elements with jQuery

HOUR 9: Applying Events for Richly Interactive Web Pages

HOUR 10: Dynamically Accessing and Manipulating Web Pages

HOUR 11: Accessing Data Outside the Web Page

PART III: Building Richly Interactive Web Pages

HOUR 12: Enhancing User Interaction Through Animation and Other Special Effects

HOUR 13: Interacting with Web Forms HOUR 14: Creating Advanced Web Page Elements

PART IV: Advanced Concepts

HOUR 15: Accessing Server-Side Data via AJAX

HOUR 16: Interacting with External Services, Facebook, Google, Twitter, and Flickr

PART V: jQuery UI

HOUR 17: Introducing jQuery UI

HOUR 18: Using jQuery UI Effects

HOUR 19: Advanced Interactions Using jQuery UI Interaction Widgets

HOUR 20: Using jQuery UI Widgets to Add Rich Interactions to Web Pages

PART VI: jQuery Mobile

HOUR 21: Introducing Mobile Website Development

HOUR 22: Implementing Mobile Web Pages

HOUR 23: Formatting Content in Mobile Pages

HOUR 24: Implementing Mobile Form Elements and Controls

Table of contents

  1. About This eBook
  2. Title Page
  3. Copyright Page
  4. Dedication Page
  5. Contents at a Glance
  6. Table of Contents
  7. About the Author
  8. Acknowledgments
  9. We Want to Hear from You!
  10. Reader Services
  11. Introduction
    1. Beyond jQuery and JavaScript
    2. Code Examples
    3. Special Elements
    4. Q&A, Quizzes, and Exercises
  12. Part I: Introduction to jQuery and JavaScript Development
    1. Hour 1. Intro to Dynamic Web Programming
      1. Understanding the Web Server/Browser Paradigm
      2. Preparing to Write jQuery and JavaScript
      3. Summary
      4. Q&A
      5. Workshop
      6. Quiz
      7. Quiz Answers
      8. Exercises
    2. Hour 2. Debugging jQuery and JavaScript Web Pages
      1. Viewing the JavaScript Console
      2. Debugging HTML Elements
      3. Debugging CSS
      4. Debugging jQuery and JavaScript
      5. Analyzing the Network Traffic
      6. Summary
      7. Q&A
      8. Workshop
      9. Quiz
      10. Quiz Answers
      11. Exercises
    3. Hour 3. Understanding Dynamic Web Page Anatomy
      1. Using HTML/HTML5 Elements to Build a Dynamic Web Page
      2. Understanding HTML Structure
      3. Implementing HTML Head Elements
      4. Adding HTML Body Elements
      5. Adding Some Advanced HTML5 Elements
      6. Summary
      7. Q&A
      8. Workshop
      9. Quiz
      10. Quiz Answers
      11. Exercises
    4. Hour 4. Adding CSS/CSS3 Styles to Allow Dynamic Design and Layout
      1. Adding CSS Styles to the Web Page
      2. Adding CSS Styles to HTML Elements
      3. Preparing CSS Styles for Dynamic Design
      4. Summary
      5. Q&A
      6. Workshop
      7. Quiz
      8. Quiz Answers
      9. Exercises
    5. Hour 5. Jumping into jQuery and JavaScript Syntax
      1. Adding jQuery and JavaScript to a Web Page
      2. Accessing the DOM
      3. Understanding JavaScript Syntax
      4. Summary
      5. Q&A
      6. Workshop
      7. Quiz
      8. Quiz Answers
      9. Exercises
    6. Hour 6. Understanding and Using JavaScript Objects
      1. Using Object Syntax
      2. Understanding Built-In Objects
      3. Creating Custom-Defined Objects
      4. Summary
      5. Q&A
      6. Workshop
      7. Quiz
      8. Quiz Answers
      9. Exercises
  13. Part II: Implementing jQuery and JavaScript in Web Pages
    1. Hour 7. Accessing DOM Elements Using JavaScript and jQuery Objects
      1. Understanding DOM Objects Versus jQuery Objects
      2. Accessing DOM Objects from JavaScript
      3. Using jQuery Selectors
      4. Summary
      5. Q&A
      6. Workshop
      7. Quiz
      8. Quiz Answers
      9. Exercise
    2. Hour 8. Navigating and Manipulating jQuery Objects and DOM Elements with jQuery
      1. Chaining jQuery Object Operations
      2. Filtering the jQuery Object Results
      3. Traversing the DOM Using jQuery Objects
      4. Looking at Some Additional jQuery Object Methods
      5. Summary
      6. Q&A
      7. Workshop
      8. Quiz
      9. Quiz Answers
      10. Exercise
    3. Hour 9. Applying Events for Richly Interactive Web Pages
      1. Understanding Events
      2. Using the Page Load Events for Initialization
      3. Adding and Removing Event Handlers to DOM Elements
      4. Triggering Events Manually
      5. Creating Custom Events
      6. Implementing Callbacks
      7. Summary
      8. Q&A
      9. Workshop
      10. Quiz
      11. Quiz Answers
      12. Exercises
    4. Hour 10. Dynamically Accessing and Manipulating Web Pages
      1. Accessing Browser and Page Element Values
      2. Dynamically Manipulating Page Elements
      3. Dynamically Rearranging Elements on the Web Page
      4. Summary
      5. Q&A
      6. Workshop
      7. Quiz
      8. Quiz Answers
      9. Exercises
    5. Hour 11. Accessing Data Outside the Web Page
      1. Understanding the Screen Object
      2. Using the Window Object
      3. Using the Browser Location Object
      4. Using the Browser History Object
      5. Controlling External Links
      6. Adding Pop-up Boxes
      7. Setting Timers
      8. Summary
      9. Q&A
      10. Workshop
  14. Part III: Building Richly Interactive Web Pages
    1. Hour 12. Enhancing User Interaction Through Animation and Other Special Effects
      1. Understanding jQuery Animation
      2. Animating Show and Hide
      3. Animating Visibility
      4. Sliding Elements
      5. Creating Resize Animations
      6. Implementing Moving Elements
      7. Summary
      8. Q&A
      9. Workshop
      10. Quiz
      11. Quiz Answers
      12. Exercises
    2. Hour 13. Interacting with Web Forms
      1. Accessing Form Elements
      2. Intelligent Form Flow Control
      3. Dynamically Controlling Form Element Appearance and Behavior
      4. Validating a Form
      5. Summary
      6. Q&A
      7. Workshop
      8. Quiz
      9. Quiz Answers
      10. Exercises
    3. Hour 14. Creating Advanced Web Page Elements
      1. Adding an Image Gallery
      2. Implementing Tables with Sorting and Filters
      3. Creating a Tree View
      4. Using Overlay Dialogs
      5. Implementing a Graphical Equalizer Display
      6. Adding Sparkline Graphics
      7. Summary
      8. Q&A
      9. Workshop
      10. Quiz
      11. Quiz Answers
      12. Exercises
  15. Part IV: Advanced Concepts
    1. Hour 15. Accessing Server-Side Data via AJAX
      1. Making AJAX Easy
      2. Implementing AJAX
      3. Using Advanced jQuery AJAX
      4. Summary
      5. Q&A
      6. Workshop
    2. Hour 16. Interacting with External Services, Facebook, Google, Twitter, and Flickr
      1. Using jQuery and JavaScript to Add Facebook Social Elements to Your Web Pages
      2. Adding Google Maps to Your Web Pages
      3. Adding a Custom Google Search
      4. Adding Twitter Elements to Your Web Pages
      5. Adding Flickr Images to Your Website
      6. Summary
      7. Q&A
      8. Workshop
  16. Part V: jQuery UI
    1. Hour 17. Introducing jQuery UI
      1. Getting Started with jQuery UI
      2. Applying jQuery UI in Your Scripts
      3. Summary
      4. Q&A
      5. Workshop
    2. Hour 18. Using jQuery UI Effects
      1. Applying jQuery UI Effects
      2. Adding Effects to Class Transitions
      3. Adding Effects to Element Visibility Transitions
      4. Summary
      5. Q&A
      6. Workshop
    3. Hour 19. Advanced Interactions Using jQuery UI Interaction Widgets
      1. Introducing jQuery UI Interactions
      2. Using the Drag-and-Drop Widgets
      3. Resizing Elements Using the Resizable Widget
      4. Applying the Selectable Widget
      5. Sorting Elements with the Sortable Widget
      6. Summary
      7. Q&A
      8. Workshop
    4. Hour 20. Using jQuery UI Widgets to Add Rich Interactions to Web Pages
      1. Reviewing Widgets
      2. Adding an Expandable Accordion Element
      3. Implementing Autocomplete in Form Elements
      4. Applying jQuery UI Buttons to Form Controls
      5. Creating a Calendar Input
      6. Generating Stylized Dialogs with jQuery UI
      7. Implementing Stylized Menus
      8. Creating Progress Bars
      9. Implementing Slider Bars
      10. Adding a Value Spinner Element
      11. Creating Tabbed Panels
      12. Adding Tooltips to Page Elements
      13. Creating Custom Widgets
      14. Summary
      15. Q&A
      16. Workshop
  17. Part VI: jQuery Mobile
    1. Hour 21. Introducing Mobile Website Development
      1. Jumping into the Mobile World
      2. Getting Started with jQuery Mobile
      3. Understanding jQuery Mobile
      4. Summary
      5. Q&A
      6. Workshop
    2. Hour 22. Implementing Mobile Web Pages
      1. Building Mobile Pages
      2. Implementing Mobile Sites with Multiple Pages
      3. Creating a Navbar
      4. Implementing Dialogs
      5. Summary
      6. Q&A
      7. Workshop
    3. Hour 23. Formatting Content in Mobile Pages
      1. Adding Basic HTML
      2. Creating a Grid Layout
      3. Implementing Listviews
      4. Using Collapsible Blocks and Sets
      5. Adding Auxiliary Content to Panels
      6. Working with Pop-ups
      7. Building Mobile-Friendly Tables
      8. Summary
      9. Q&A
      10. Workshop
    4. Hour 24. Implementing Mobile Form Elements and Controls
      1. Understanding Mobile Forms
      2. Using Text Elements
      3. Defining Buttons
      4. Adding Sliders and Toggle Switches
      5. Defining Radios and Check Boxes
      6. Implementing Select Menus
      7. Summary
      8. Q&A
      9. Workshop
  18. Index

Product information

  • Title: Sams Teach Yourself jQuery and JavaScript in 24 Hours
  • Author(s): Brad Dayley
  • Release date: December 2013
  • Publisher(s): Sams
  • ISBN: 9780133149852