Overview

Is Ajax a new technology, or the same old stuff web developers have been using for years? Both, actually. This book demonstrates not only how tried-and-true web standards make Ajax possible, but how these older technologies allow you to give sites a decidedly modern Web 2.0 feel.

Ajax: The Definitive Guide explains how to use standards like JavaScript, XML, CSS, and XHTML, along with the XMLHttpRequest object, to build browser-based web ...

See more details below
Ajax: The Definitive Guide

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$22.99
BN.com price
(Save 42%)$39.99 List Price

Overview

Is Ajax a new technology, or the same old stuff web developers have been using for years? Both, actually. This book demonstrates not only how tried-and-true web standards make Ajax possible, but how these older technologies allow you to give sites a decidedly modern Web 2.0 feel.

Ajax: The Definitive Guide explains how to use standards like JavaScript, XML, CSS, and XHTML, along with the XMLHttpRequest object, to build browser-based web applications that function like desktop programs. You get a complete background on what goes into today's web sites and applications, and learn to leverage these tools along with Ajax for advanced browser searching, web services, mashups, and more. You discover how to turn a web browser and web site into a true application, and why developing with Ajax is faster, easier and cheaper.

The book also explains:

  • How to connect server-side backend components to user interfaces in the browser
  • Loading and manipulating XML documents, and how to replace XML with JSON
  • Manipulating the Document Object Model (DOM)
  • Designing Ajax interfaces for usability, functionality, visualization, and accessibility
  • Site navigation layout, including issues with Ajax and the browser's back button
  • Adding life to tables & lists, navigation boxes and windows
  • Animation creation, interactive forms, and data validation
  • Search, web services and mash-ups
  • Applying Ajax to business communications, and creating Internet games without plug-ins
  • The advantages of modular coding, ways to optimize Ajax applications, and more
This book also provides references to XML and XSLT, popular JavaScript Frameworks, Libraries, and Toolkits, and various Web Service APIs. By offering web developers a much broader set of tools and options, Ajax gives developers a new way to create content on the Web, while throwing off the constraints of the past. Ajax: The Definitive Guide describes the contents of this unique toolbox in exhaustive detail, and explains how to get the most out of it.

Read More Show Less

Product Details

  • ISBN-13: 9780596554972
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 1/25/2008
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 982
  • Sales rank: 1,283,088
  • File size: 16 MB
  • Note: This product may take a few minutes to download.

Meet the Author

Anthony T. Holdener III currently builds Internet/Intranet applications utilizing the latest available technologies while striving for accessibility and cross-browser compatibility. He has worked with the web in one form or another since 1997 when he helped open an Internet cafe in Fairview Heights, Illinois. A graduate of St. Louis University with a degree in Computer Science, Anthony has worked as a web architect or developer for the past eight years for a number of Fortune 500 companies in the St. Louis area. He resides in the village of Shiloh, Illinois, a suburb of St. Louis, Missouri, with his wife and twin toddlers. When not on his computer, Anthony enjoys reading, painting, and spending time with his family.

Read More Show Less

Table of Contents

Preface

Part I Ajax Fundamentals

1 Reinventing the Web 3

Web Page Components 3

Modern Web Standards 9

Browsers 17

Standards Compliance 19

Welcome to Web 2.0 20

2 From Web Sites to Web Applications 22

The Transition 22

Basic Web and Ajax Design Patterns 28

Application Environments 31

The Developer 33

What Ajax Is Not 34

3 Servers, Databases, and the Web 35

The Web Server 36

Server-Side Scripting 39

Databases 44

Getting Data Into and Out of Relational Databases 48

Interfacing the Interface 54

Frameworks and Languages 57

What Good Are Frameworks? 63

4 Foundations: Scripting XML and JSON 68

XML 68

JSON 86

Choosing a Data Exchange Format 92

A Quick Introduction to Client Frameworks 94

Simplifying Development 97

5 Manipulating the DOM 103

Understanding the DOM 103

We've Already Met 105

Manipulating DOM Elements, Attributes, and Objects 106

Change That Style 117

Events in the DOM 129

DOM Stuff for Tables 135

Is innerHTML Evil? 138

6 Designing Ajax Interfaces 141

Usability 141

Functionality 153

Visualization 158

Accessibility 167

The Ajax Interface 171

Part II Ajax Foundations

7 Laying Out Site Navigation 175

Menus 175

Tabs 212

Navigation Aids 221

Problems with Ajax Navigation 243

General Layout 246

8 Fun with Tables and Lists 247

Layout Without Tables 247

Accessible Tables 252

Sorting Tables 264

Tables with Style 280

Table Pagination 283

Lists 2.0 291

Lists for All Seasons 292

9 Page Layout with Frames That Aren't 316

Using Frames 316

XHTML and Frames 321

The Magic of Ajax and a DIV 323

Page Layout 329

10 Navigation Boxes and Windows 335

The Alert Box335

Integrating the Window 335

Navigation Windows 347

Tool Tips 355

The Necessary Pop Up 360

11 Customizing the Client 363

Browser Customizations 363

Stylesheet Switching 368

Switching Different Customizations 381

Easy Font-Size Switching 386

Creating Color Themes 392

Throwing Ajax into the Mix 397

Changing Site Language with Ajax 400

Repositioning Objects and Keeping Those Positions 403

Storing It All in the Database 407

12 Errors: To Be (in Style) or Not to Be 408

Error Handling on the Web 408

Should I React to That Error? 413

Handling an Error with Care 417

Integrating the User Error 420

13 This Ain't Your Father's Animation 434

Animation on the Web 434

What Is Wrong with GIF? 437

Building Animation with the PNG Format 439

Ajax Animations 453

14 A Funny Thing Happened on the Way to the Form 482

XHTML Forms 482

Using JavaScript 490

Fancier Forms 498

The Basics of Ajax and Forms 519

Accepting Ajax-Delivered Data 524

Server Responses 531

15 Data Validation: Client, Server, or Both 534

Data Validation Is Important 534

Validation with JavaScript 536

CSS Notification of Errors 552

Validation on the Server 555

Ajax Client/Server Validation 558

Part III Ajax in Applications

16 Search: The New Frontier 565

Types of Site Searches 565

Dynamic Searching with Ajax 577

Googling a Site 581

17 Introducing Web Services 594

What Is a Web Service? 594

Web Service Architectures 594

Ajax and Web Services 606

Web Feeds 613

Web Service APIs 618

18 Web Services: The APIs 619

Publicly Available Web Services 619

Ajax and the API 657

The Next Step with Services 658

19 Mashups 659

Mashups in Web 2.0 Applications 659

What Are Mashups? 659

Mashups As Applications 661

Data Sources 665

Application Portlets 668

Building a Mashup 668

Mashups and Business 671

20 For Your Business Communication Needs 672

Businesses and Ajax 672

Real-Time Communication 674

File Sharing 691

Whiteboards 703

Combining Applications 720

21 Internet Games Without Plug-ins 721

Gaming on the Web 721

Internet Requirements 732

Animating a Character 735

Basic Collisions 753

User Input 764

The Basics of Event Handling 767

Putting It All Together 776

Part IV Wrapping Up

22 Modular Coding 789

What Is Modular Coding? 789

The Client Side 791

The Server Side 804

23 Optimizing Ajax Applications 807

Site Optimization Factors 807

HTTP 809

Packets 815

Client-Side Optimizations 818

Server-Side Optimizations 830

Ajax Optimization 838

Part V References

A The XML and XSLT You Need to Know 843

B JavaScript Framework, Toolkit, and Library References 863

C Web Service API Catalog 892

D Ajax Risk References 916

Index 925

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 3 Customer Reviews
  • Anonymous

    Posted December 6, 2011

    A Real Gem

    As a computer programmer, I buy a lot of books. I am always excited when a new on arrives, and usually disappointed. Ajax: The Definitive Guide is NOT one of those disappointments.The book arrived just in time, as I have been working on an Ajax-intense project, and I have previously done little more then do a lookup from an input field or pull a table into a div.So far, I have had three major Ajax hurdles, each one, to my delight and surprise, solved quickly and easily with Anthony's book.This book is a compendium of code examples that are not only real-world applications, but they really work!Speaking from someone who has a lot of technical books sitting on the shelf collecting dust due to their complete lack of useful content, Ajax: The Definitive Guide is a gem in the rubble heap.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 10, 2011

    No text was provided for this review.

  • Anonymous

    Posted December 27, 2010

    No text was provided for this review.

Sort by: Showing all of 3 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)