did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780672328800

JavaScript Phrasebook

by
  • ISBN13:

    9780672328800

  • ISBN10:

    0672328801

  • Edition: 1st
  • Format: Paperback
  • Copyright: 2006-08-28
  • Publisher: Sams Publishing
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $24.99

Summary

JavaScript Phrasebook gives you the JavaScript, Ajax, DHTML, and CSS code you need to create interactive web applications, pages, and sites quickly and effectively. Book jacket.

Author Biography

Christian Wenz is a professional phrasemonger, author, trainer, and consultant with a focus on web technologies. He frequently contributes articles to renowned IT magazines and speaks at conferences around the globe. Christian contributes to several PHP packages in the PEAR repository and also maintains one Perl CPAN module. He holds a degree (“Diplom”) in Computer Sciences from Technical University of Munich and lives and works in Munich, Germany. He also is Europe’s very first Zend Certified Professional and founding principal at the PHP Security Consortium. He has written or cowritten more than four dozen books, including PHP 5 Unleashed and PHP Phrasebook.

Table of Contents

Introductionp. 1
JavaScript Basicsp. 5
Understanding JavaScript (and Its History)p. 5
Setting Up a Test Systemp. 7
Configuring Web Browsersp. 9
Including JavaScript Codep. 11
Using External JavaScript Filesp. 12
Dynamically Loading JavaScript Filesp. 13
Using JavaScript Pseudo URLsp. 14
Executing JavaScript with Event Handlersp. 15
Coping with Browsers without JavaScriptp. 16
Common Phrasesp. 19
Detecting the Browser Typep. 19
Checking Browser Capabilitiesp. 22
Preventing Cachingp. 23
Redirecting the Browserp. 23
Reloading the Pagep. 24
Creating a Random Numberp. 25
Date and Time Informationp. 25
Searching with Regular Expressionsp. 28
Replacing Textp. 29
Navigating within the Browser's Historyp. 30
Displaying the Modification Date of the Pagep. 30
Retrieving GET Parametersp. 31
Asking for User Confirmationp. 32
Asking for User Datap. 32
Images and Animationsp. 35
Creating Mouseover Buttonsp. 36
Preloading Imagesp. 38
Animating Graphicsp. 40
Stretching Graphicsp. 42
Visualizing the Page Loading State with a Progress Barp. 44
CSSp. 47
Accessing CSS Stylesp. 48
Accessing CSS Classesp. 50
Accessing Individual Style Sheetsp. 51
Accessing Individual CSS Rulesp. 52
Letting the Contents of a Website Disappearp. 55
Applying JavaScript to CSS Selectorsp. 58
Changing the Mouse Cursorp. 60
DOM and DHTMLp. 63
Understanding DOMp. 63
Understanding DHTMLp. 65
Accessing Specific Elementsp. 65
Accessing Tagsp. 66
Determining Node Informationp. 68
Removing Elementsp. 70
Adding Elementsp. 71
Creating Text Elementsp. 73
Working with Attributesp. 74
Cloning Elementsp. 76
Replacing Elementsp. 77
Creating a Bulleted List from JavaScript Datap. 78
Creating a Table from JavaScript Datap. 80
Changing HTML Fragmentsp. 82
Positioning Elementsp. 83
Moving Elementsp. 85
Creating a Sticky Navigationp. 86
Creating a Flash Pop-Up Adp. 88
OOP and Eventsp. 93
Creating a Classp. 93
Accessing Class Membersp. 94
Inheriting Classesp. 96
Extending Built-In JavaScript Objectsp. 99
Reacting Upon JavaScript Eventsp. 100
Using Keyboard Eventsp. 103
Submitting a Form with the Enter Keyp. 105
Using Mouse Eventsp. 106
Cookiesp. 109
Understanding Cookiesp. 110
Setting Cookiesp. 112
Reading Out Cookiesp. 113
Setting an Expiration Datep. 116
Using Other Cookie Optionsp. 117
Deleting Cookiesp. 119
Checking for Cookie Supportp. 119
Saving Multiple Information in One Cookiep. 120
Formsp. 123
Understanding HTML Forms with JavaScriptp. 123
Accessing Text Fieldsp. 125
Accessing Check Boxesp. 126
Accessing Radio Buttonsp. 127
Accessing Selection Listsp. 129
Accessing a Multiple Selection Listp. 131
Disabling Form Elementsp. 134
Submitting a Formp. 136
Preventing Form Submissionp. 137
Preventing Repeated Form Submissionsp. 138
Giving a Field the Focusp. 140
Selecting Text in a Fieldp. 141
Emptying Text Fields When Clicked Uponp. 143
Validating Text Fieldsp. 145
Validating Check Boxesp. 146
Validating Radio Buttonsp. 147
Validating Selection Listsp. 148
Automatically Validating a Formp. 151
Implementing Navigation with a Selection Listp. 154
Implementing a Hierarchical Navigation with a Selection Listp. 155
Emptying a Set of Radio Buttonsp. 158
Creating Prefilled Date Selection Listsp. 159
Creating Validating Date Selection Listsp. 160
Windows and Framesp. 163
Using Window Optionsp. 164
Opening a Modal Windowp. 167
Determining Screen Sizep. 169
Determining the Window Sizep. 170
Resizing a Windowp. 172
Repositioning a Windowp. 173
Opening a Centered Pop-Up Windowp. 174
Opening a Full-Screen Windowp. 176
Opening a New Window in a Corner of the Screenp. 177
Creating a Sitemapp. 178
Closing a Windowp. 179
Checking for the Presence of a Pop-Up Blockerp. 181
Changing the Contents of Two Frames at Oncep. 185
Using Iframesp. 187
Web Servicesp. 189
Creating a Web Service with PHPp. 192
Creating a Web Service with ASP.NETp. 193
Calling a Web Service from Internet Explorerp. 195
Calling a Web Service from a Mozilla Browserp. 198
Calling an ASP.NET Web Service from a Mozilla Browserp. 201
AJAX (and Related Topics)p. 203
Initializing an AJAX Applicationp. 205
Sending a GET Requestp. 206
Sending a POST Requestp. 208
Sending a Synchronous Requestp. 210
Receiving Multiple Data from the Serverp. 211
Aborting an HTTP Requestp. 213
Retrieving HTTP Headersp. 215
Receiving XML from the Serverp. 216
Using JSON for Data (De)Serializationp. 220
Creating a Waiting Screenp. 221
Solving the Bookmark Problemp. 224
Solving the Back Button Problemp. 225
Using XSLTp. 228
Using an XML Libraryp. 230
Using the Yahoo! Web Servicep. 233
Embedded Mediap. 237
Accessing Embedded Mediap. 237
Checking for Plug-Insp. 238
Coping with Recent Internet Explorer Versionsp. 240
Accessing Multimedia Contentp. 241
Accessing Java Contentp. 242
Accessing Flash Contentp. 244
Indexp. 247
Table of Contents provided by Ingram. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Excerpts

= 0) {slash = '\\';} else {slash = '/';}openLoc = figLoc.substring(0, figLoc.lastIndexOf(slash) + 1);while (pPage.substring(0,3) == '../') {openLoc = openLoc.substring(0, openLoc.lastIndexOf(slash, openLoc.length - 2)+ 1);pPage = pPage.substring(3, pPage.length + 1);}popUpWin =window.open('','popWin','resizable=1,scrollbars=1,location=0,toolbar=0,width=525,height=394');figDoc = popUpWin.document;zhtm= ' ' + pPage + ' ';zhtm += ' ';zhtm += ' ';zhtm += ' ';zhtm += '' + pPage.substring(pPage.lastIndexOf('/') + 1, pPage.length) + '';zhtm += ' ';figDoc.write(zhtm);figDoc.close();}// modified 3.1.99 RWE v4.1 --> Introduction IntroductionBack in 1999, I wrote a book on JavaScript. At the beginning, it sold really great, and then sales started to decrease a little bit. It still sold well enough to reach seven editions by this fall, but there was a subtle decline in copies nevertheless.However, all of this changed drastically at the end of last year--sales went up considerably, as did sales of other titles in the same segment. But how come? One of the reasons is AJAX. The technology itself is not new, but the term is. In February 2005, Jesse James Garrett coined the acronym, and since then, the whole web world seems to have gone crazy. And although AJAX can be explained in a couple of minutes actually, it requires a good knowledge of various aspects of JavaScript. This explains the growing demand for advanced JavaScript content, and also led to the writing of theJavaScript Phrasebook.When we (Damon Jordan, Mark Taber, and I) created the book series in 2005, we wanted to create a kind of pimped-up version of language phrasebooks: Common sentences and expressions are translated into a foreign language--into JavaScript, of course. However, unlike in a regular phrasebook, you will also get explanations alongside the code. Without it, the potential for embarrassing situations is quite high, in any language.This book is no introduction to JavaScript. Elementary JavaScript features are covered, but we tried to put a great emphasis on intermediary and advanced material as well. The idea behind this phrasebook is that especially if your JavaScript knowledge is rusty, you will find common problems and solutions in this book. So use this book as a reference guide to quickly overcome issues you are facing during development. And explore the book to find some JavaScript features you may not have thought about before.This book is no cookbook with long and inflexible solutions to short problems. The idea was to keep the code snippets as concise as possible so that the approach can be demonstrated; this enables you to adapt the presented technique to your own applications and your specific scenario. In order to make

Rewards Program