JavaScript & jQuery: The Missing Manual. 3rd Edition - Helion
ebook
Autor: David Sawyer McFarlandISBN: 978-14-919-4861-3
stron: 686, Format: ebook
Data wydania: 2014-09-18
Księgarnia: Helion
Cena książki: 152,15 zł (poprzednio: 176,92 zł)
Oszczędzasz: 14% (-24,77 zł)
JavaScript lets you supercharge your HTML with animation, interactivity, and visual effects—but many web designers find the language hard to learn. This easy-to-read guide not only covers JavaScript basics, but also shows you how to save time and effort with the jQuery and jQuery UI libraries of prewritten JavaScript code. You’ll build web pages that feel and act like desktop programs—with little or no programming.
The important stuff you need to know:
- Pull back the curtain on JavaScript. Learn how to build a basic program with this language.
- Get up to speed on jQuery. Quickly assemble JavaScript programs that work well on multiple web browsers.
- Transform your user interface. Learn jQuery UI, the JavaScript library for interface features like design themes and controls.
- Make your pages interactive. Create JavaScript events that react to visitor actions.
- Use animations and effects. Build drop-down navigation menus, pop-ups, automated slideshows, and more.
- Collect data with web forms. Create easy-to-use forms that ensure more accurate visitor responses.
- Practice with living examples. Get step-by-step tutorials for web projects you can build yourself.
Osoby które kupowały "JavaScript & jQuery: The Missing Manual. 3rd Edition", wybierały także:
- D3.js w akcji 67,42 zł, (20,90 zł -69%)
- Tablice informatyczne. Node.js 16,86 zł, (5,90 zł -65%)
- Testowanie aplikacji w React.js. Kurs video. Praca z biblioteką Jest.js 69,00 zł, (27,60 zł -60%)
- JavaScript. Kurs video. Programowanie funkcyjne i reaktywne 98,98 zł, (39,59 zł -60%)
- AngularJS. Kurs video. Poziom pierwszy. Tworzenie aplikacji 119,00 zł, (47,60 zł -60%)
Spis treści
JavaScript & jQuery: The Missing Manual. 3rd Edition eBook -- spis treści
- JavaScript & jQuery: The Missing Manual
- A Note Regarding Supplemental Files
- The Missing Credits
- About the Author
- About the Creative Team
- Acknowledgments
- The Missing Manual Series
- Introduction
- What Is JavaScript?
- A Bit of History
- JavaScript Is Everywhere
- What Is jQuery?
- HTML: The Barebones Structure
- How HTML Tags Work
- CSS: Adding Style to Web Pages
- Anatomy of a Style
- Software for JavaScript Programming
- Free Programs
- Commercial Software
- About This Book
- This Books Approach to JavaScript
- About the Outline
- The Very Basics
- AboutTheseArrows
- About the Online Resources
- Living Examples
- Registration
- Feedback
- Errata
- Safari Books Online
- What Is JavaScript?
- 1. Getting Started with JavaScript
- 1. Writing Your First JavaScript Program
- Introducing Programming
- Whats a Computer Program?
- How to Add JavaScript to a Page
- External JavaScript Files
- Your First JavaScript Program
- Writing Text on a Web Page
- Attaching an External JavaScript File
- Tracking Down Errors
- The Chrome JavaScript Console
- The Internet Explorer Console
- The Firefox JavaScript Web Console
- The Safari Error Console
- Introducing Programming
- 2. The Grammar of JavaScript
- Statements
- Built-In Functions
- Types of Data
- Numbers
- Strings
- Booleans
- Variables
- Creating a Variable
- Using Variables
- Working with Data Types and Variables
- Basic Math
- The Order of Operations
- Combining Strings
- Combining Numbers and Strings
- Changing the Values in Variables
- Tutorial: Using Variables to Create Messages
- Tutorial: Asking for Information
- Arrays
- Creating an Array
- Accessing Items in an Array
- Adding Items to an Array
- Adding an Item to the End of an Array
- Adding an Item to the Beginning of an Array
- Choosing How to Add Items to an Array
- Deleting Items from an Array
- Tutorial: Writing to a Web Page Using Arrays
- A Quick Object Lesson
- Comments
- When to Use Comments
- Comments in This Book
- 3. Adding Logic and Control to Your Programs
- Making Programs React Intelligently
- Conditional Statement Basics
- Adding a Backup Plan
- Testing More Than One Condition
- More Complex Conditions
- Making Sure More than One Condition is True
- Making Sure at Least One Condition is True
- Negating a Condition
- Nesting Conditional Statements
- Tips for Writing Conditional Statements
- Tutorial: Using Conditional Statements
- Handling Repetitive Tasks with Loops
- While Loops
- Loops and Arrays
- For Loops
- Do/While Loops
- Functions: Turn Useful Code Into Reusable Commands
- Mini-Tutorial
- Giving Information to Your Functions
- Retrieving Information from Functions
- Keeping Variables from Colliding
- Tutorial: A Simple Quiz
- Making Programs React Intelligently
- 1. Writing Your First JavaScript Program
- 2. Getting Started with jQuery
- 4. Introducing jQuery
- About JavaScript Libraries
- Getting jQuery
- Linking to the jQuery File on a CDN Server
- Downloading Your Own jQuery File
- Adding jQuery to a Page
- Modifying Web Pages: An Overview
- Understanding the Document Object Model
- Selecting Page Elements: The jQuery Way
- Basic Selectors
- ID Selectors
- Element Selectors
- Class Selectors
- Advanced Selectors
- jQuery Filters
- Understanding jQuery Selections
- Automatic Loops
- Chaining Functions
- Basic Selectors
- Adding Content to a Page
- Replacing and Removing Selections
- Setting and Reading Tag Attributes
- Classes
- Reading and Changing CSS Properties
- Changing Multiple CSS Properties at Once
- Reading, Setting, and Removing HTML Attributes
- Acting on Each Element in a Selection
- Anonymous Functions
- this and $(this)
- Automatic Pull Quotes
- Overview
- Programming
- 5. Action/Reaction: Making Pages Come Alive with Events
- What Are Events?
- Mouse Events
- Document/Window Events
- Form Events
- Keyboard Events
- Using Events the jQuery Way
- Tutorial: Introducing Events
- More jQuery Event Concepts
- Waiting for the HTML to Load
- An Alternative to $(Document).Ready()
- Mousing Over and Off an Element
- The Event Object
- Stopping an Events Normal Behavior
- Removing Events
- Waiting for the HTML to Load
- Advanced Event Management
- Other Ways to Use the on() Function
- Delegating Events with on()
- How Event Delegation Affects the $(this) Object
- Tutorial: A One-Page FAQ
- Overview of the Task
- The Programming
- What Are Events?
- 6. Animations and Effects
- jQuery Effects
- Basic Showing and Hiding
- Fading Elements In and Out
- Sliding Elements
- Tutorial: Login Slider
- The Programming
- Animations
- Easing
- Performing an Action After an Effect Is Completed
- Tutorial: Animated Dashboard
- The Programming
- jQuery and CSS3 Transitions and Animations
- jQuery and CSS Transitions
- jQuery and CSS Animations
- jQuery Effects
- 7. Common jQuery Tasks
- Swapping Images
- Changing an Images src Attribute
- Swapping Images with jQuery
- Preloading Images
- Rollover Images
- Tutorial: Adding Rollover Images
- Overview of the Task
- The Programming
- Tutorial: Photo Gallery with Effects
- Overview of the Gallery
- The Programming
- Controlling How Links Behave
- Selecting Links with JavaScript
- Determining a Links Destination
- Dont Follow That Link
- Opening External Links in a New Window
- Creating New Windows
- Window Properties
- Use the Window Reference
- Events that Can Open a New Window
- Window Properties
- Introducing jQuery Plug-ins
- What to Look for in a jQuery Plug-in
- jQuery Plug-in Basics
- Build a Responsive Navigation Bar
- The HTML
- The CSS
- The JavaScript
- The Tutorial
- Customizing the Look of the SmartMenus Plug-in
- Swapping Images
- 8. Enhancing Web Forms
- Understanding Forms
- Selecting Form Elements
- Getting and Setting the Value of a Form Element
- Determining Whether Buttons and Boxes Are Checked
- Form Events
- Submit
- Focus
- Blur
- Click
- Change
- Adding Smarts to Your Forms
- Focusing the First Field in a Form
- Disabling and Enabling Fields
- Hiding and Showing Form Options
- Tutorial: Basic Form Enhancements
- Focusing a Field
- Disabling Form Fields
- Hiding Form Fields
- Form Validation
- jQuery Validation Plug-in
- Basic Validation
- Adding Validation Rules
- Adding Error Messages
- Advanced Validation
- Advanced Rules
- Advanced Error Messages
- Styling Error Messages
- Validation Tutorial
- Basic Validation
- Advanced Validation
- Validating Checkboxes and Radio Buttons
- Formatting the Error Messages
- Understanding Forms
- 4. Introducing jQuery
- 3. Getting Started with jQuery UI
- 9. Expanding Your Interface
- What Is jQuery UI?
- Why Use jQuery UI?
- Using jQuery UI
- Adding jQuery UI to a Web Page
- Adding Messages with Dialog Boxes
- Mini-Tutorial: Creating a Dialog Box
- Setting Dialog Box Properties
- Mini Tutorial: Passing Options to the Dialog Widget
- Opening Dialog Boxes with Events
- Adding Buttons to a Dialog Box
- Mini-Tutorial: Adding Buttons to a Dialog Box
- Providing Information with Tooltips
- Mini-Tutorial: Adding Tooltips Quickly
- Tooltip Options
- Using HTML Content in a Tooltip
- Mini-Tutorial: Add HTML to a Tooltip
- Adding Tabbed Panels
- Tabbed Panel Options
- Mini-Tutorial: Add Tabbed Panels
- Tabs with Remote Panel Content
- Saving Space with Accordions
- Mini-Tutorial: Create a jQuery UI Accordion
- Adding Menus to a Page
- Creating a Horizontal Navigation Bar
- 10. Forms Revisited
- Picking Dates with Style
- Setting Date Picker Properties
- Tutorial: Adding a Birthdate Picker
- Stylish Select Menus
- Setting Select Menu Properties
- Performing an Action When a Visitor Selects an Option
- Styling Buttons
- Customizing Buttons
- Improve Radio Buttons and Checkboxes
- Providing Hints with Autocomplete
- Using Arrays for Autocomplete
- Using Separate Labels and Values
- Getting Autocomplete Data from the Server
- Autocomplete Options
- jQuery UI Form Widget Tutorial
- Picking Dates with Style
- 11. Customizing the Look of jQuery UI
- Introducing ThemeRoller
- Downloading and Using Your New Theme
- Adding a New Theme to an Existing Website
- More About the jQuery UI CSS Files
- Overriding jQuery UI Styles
- Understanding Specificity
- How jQuery UI Styles Widgets
- 12. jQuery UI Interactions and Effects
- The Draggable Widget
- Adding the Draggable Widget to a Web Page
- Draggable Mini-Tutorial
- Draggable Widget Options
- Draggable Widget Events
- The Create Event
- The Start Event
- The Drag Event
- The Stop Event
- The Droppable Widget
- Using the Droppable Widget
- Droppable Widget Options
- Droppable Widget Events
- The Drop Event
- The Activate Event
- The Deactivate Event
- The Over Event
- The Out Event
- Drag-and-Drop Tutorial
- Sorting Page Items
- Using the Sortable Widget
- Sortable Widget Options
- Sortable Events
- Sortable Methods
- jQuery UI Effects
- The Effects
- Easing
- Animating Changes Between Classes
- The Draggable Widget
- 9. Expanding Your Interface
- 4. Advanced jQuery and JavaScript
- 13. Introducing Ajax
- What Is Ajax?
- Ajax: The Basics
- Pieces of the Puzzle
- Talking to the Web Server
- Ajax the jQuery Way
- Using the load() Method
- Tutorial: The load() Function
- Overview
- The Programming
- The get() and post() Methods
- Formatting Data to Send to the Server
- Query String
- Object Literal
- Jquerys Serialize() Function
- Processing Data from the Server
- Handling Errors
- Tutorial: Using the $.get() Method
- Overview
- The Programming
- JSON
- Accessing JSON Data
- Complex JSON Data
- Introducing JSONP
- Adding a Flickr Feed to Your Site
- Constructing the URL
- Finding Photos of Specific Things
- Combining options
- Using the $.getJSON() Method
- Understanding the Flickr JSON Feed
- Constructing the URL
- Tutorial: Adding Flickr Images to Your Site
- 14. Building a To-Do List Application
- An Overview of the Application
- Add a Button
- Add a Dialog Box
- Adding Tasks
- Marking Tasks as Complete
- Event Delegation
- Deleting Tasks
- Going Further
- Editing Tasks
- Confirming Deletions
- Saving the Lists
- Local Storage
- Save to a Server
- More Ideas
- 13. Introducing Ajax
- 5. Tips, Tricks, and Troubleshooting
- 15. Getting the Most from jQuery
- Useful jQuery Tips and Information
- $() Is the Same as jQuery()
- Saving Selections into Variables
- Adding Content as Few Times as Possible
- Optimizing Your Selectors
- Using the jQuery Docs
- Reading a Page on the jQuery Docs Site
- Traversing the DOM
- More Functions for Manipulating HTML
- Useful jQuery Tips and Information
- 16. Going Further with JavaScript
- Working with Strings
- Determining the Length of a String
- Changing the Case of a String
- Searching a String: indexOf() Technique
- Extracting Part of a String with slice()
- Finding Patterns in Strings
- Creating and Using a Basic Regular Expression
- Building a Regular Expression
- Grouping Parts of a Pattern
- Useful Regular Expressions
- U.S. Zip Code
- U.S. Phone Number
- Email Address
- Date
- Web Address
- Matching a Pattern
- Matching Every Instance of a Pattern
- Replacing Text
- Trying Out Regular Expressions
- Working with Numbers
- Changing a String to a Number
- Testing for Numbers
- Rounding Numbers
- Formatting Currency Values
- Creating a Random Number
- Randomly Selecting an Array Element
- A Function for Selecting a Random Number
- Dates and Times
- Getting the Month
- Getting the Day of the Week
- Getting the Time
- Changing Hours to A.M. and P.M.
- Padding Single Digits
- Creating a Date Other Than Today
- Creating a Date Thats One Week from Today
- Writing More Efficient JavaScript
- Putting Preferences in Variables
- Putting Preferences in Objects
- Ternary Operator
- The Switch Statement
- Joining Arrays and Splitting Strings
- Putting It All Together
- Using External JavaScript Files
- Creating Fast-Loading JavaScript
- Working with Strings
- 17. Troubleshooting and Debugging
- Top JavaScript Programming Mistakes
- Non-Closed Pairs
- Quotation Marks
- Using Reserved Words
- Single Equals in Conditional Statements
- Case-Sensitivity
- Incorrect Path to External JavaScript File
- Incorrect Paths Within External JavaScript Files
- Disappearing Variables and Functions
- Debugging with the Console
- Opening the Console
- Viewing Errors with the Console
- Using console.log() to Track Script Progress
- Tutorial: Using the Console
- More Powerful Debugging
- Controlling Your Script with the Debugger
- Watching Your Script
- Debugging Tutorial
- Top JavaScript Programming Mistakes
- 15. Getting the Most from jQuery
- 6. Appendix
- A. JavaScript Resources
- References
- Websites
- Books
- Basic JavaScript
- Websites
- Books
- jQuery
- Websites
- Books
- Advanced JavaScript
- Articles and Presentations
- Websites
- Books
- CSS
- Websites
- Books
- References
- A. JavaScript Resources
- Index
- About the Author
- Copyright