Book description
Developers are hungry for a concise, easy-to-use reference that puts essential code "phrases" at their fingertips. JavaScript, and the related AJAX, is hot and there is little to no information on how to use JavaScript to develop AJAX-based applications. While there are many JavaScript books on the market, most of them are dated and few cover the most recent developments, such as AJAX.
JavaScript Phrasebook is the guide to JavaScript and AJAX that you can and will take with you everywhere. Skipping the usual tutorial on JavaScript and introducing AJAX as one of the first published works on the topic, the JavaScript Phrasebook goes straight to practical JavaScript and AJAX tools, providing immediately applicable solutions for frequent tasks and code so flexible that it is easily adapted to the your individual needs.
Table of contents
-
JavaScript™ Phrasebook
- About the Author
- Introduction
- 1. JavaScript Basics
-
2. Common Phrases
-
- Detecting the Browser Type
- Checking Browser Capabilities
- Preventing Caching
- Redirecting the Browser
- Reloading the Page
- Creating a Random Number
- Date and Time Information
- Searching with Regular Expressions
- Replacing Text
- Navigating within the Browser’s History
- Displaying the Modification Date of the Page
- Retrieving GET Parameters
- Asking for User Confirmation
- Asking for User Data
- 3. Images and Animations
- 4. CSS
-
5. DOM and DHTML
-
- Understanding DOM
- Understanding DHTML
- Accessing Specific Elements
- Accessing Tags
- Determining Node Information
- Removing Elements
- Adding Elements
- Creating Text Elements
- Working with Attributes
- Cloning Elements
- Replacing Elements
- Creating a Bulleted List from JavaScript Data
- Creating a Table from JavaScript Data
- Changing HTML Fragments
- Positioning Elements
- Moving Elements
- Creating a Sticky Navigation
- Creating a Flash Pop-Up Ad
- 6. OOP and Events
- 7. Cookies
-
8. Forms
-
- Understanding HTML Forms with JavaScript
- Accessing Text Fields
- Accessing Check Boxes
- Accessing Radio Buttons
- Accessing Selection Lists
- Accessing a Multiple Selection List
- Disabling Form Elements
- Submitting a Form
- Preventing Form Submission
- Preventing Repeated Form Submissions
- Giving a Field the Focus
- Selecting Text in a Field
- Emptying Text Fields When Clicked Upon
- Validating Text Fields
- Validating Check Boxes
- Validating Radio Buttons
- Validating Selection Lists
- Automatically Validating a Form
- Implementing Navigation with a Selection List
- Implementing a Hierarchical Navigation with a Selection List
- Emptying a Set of Radio Buttons
- Creating Prefilled Date Selection Lists
- Creating Validating Date Selection Lists
-
9. Windows and Frames
-
- Using Window Options
- Opening a Modal Window
- Determining Screen Size
- Determining the Window Size
- Resizing a Window
- Repositioning a Window
- Opening a Centered Pop-Up Window
- Opening a Full-Screen Window
- Opening a New Window in a Corner of the Screen
- Creating a Sitemap
- Closing a Window
- Checking for the Presence of a Pop-Up Blocker
- Changing the Contents of Two Frames at Once
- Using Iframes
- 10. Web Services
-
11. AJAX (and Related Topics)
-
- Initializing an AJAX Application
- Sending a GET Request
- Sending a POST Request
- Sending a Synchronous Request
- Receiving Multiple Data from the Server
- Aborting an HTTP Request
- Retrieving HTTP Headers
- Receiving XML from the Server
- Using JSON for Data (De)Serialization
- Creating a Waiting Screen
- Solving the Bookmark Problem
- Solving the Back Button Problem
- Using XSLT
- Using an XML Library
- Using the Yahoo! Web Service
- 12. Embedded Media
Product information
- Title: JavaScript™ Phrasebook: Essential Code and Commands
- Author(s):
- Release date: August 2006
- Publisher(s): Sams
- ISBN: 0768666775
You might also like
book
Creating Web Sites: The Missing Manual
Think you have to be a technical wizard to build a great web site? Think again. …
book
Dear Hacker: Letters to the Editor of 2600
Actual letters written to the leading hackers' magazine For 25 years, 2600: The Hacker Quarterly has …
book
Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript
“It’s uncommon to have a programming language wonk who can speak in such comfortable and friendly …
book
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide, Fifth Edition
Learn PHP and MySQL programming— the quick and easy way! Easy visual approach uses demonstrations and …