Foundations of Ajax

Free Download

Authors:

Edition: 1

ISBN: 9781590595824, 1590595823

Size: 7 MB (7825577 bytes)

Pages: 296/296

File format:

Language:

Publishing Year:

Category:

Ryan Asleson, Nathaniel T. Schutta9781590595824, 1590595823

Ajax burst onto the Web development scene by offering highly interactive, desktop-like Web applications that can be deployed through any modern Web browser without the need for special plug-ins. Ajax is built on existing Web technologies such as JavaScript, HTML, and CSS, and it is used in conjunction with your favorite server-side language. Foundations of Ajax explains how to combine these technologies effectively to implement Ajax into your new or existing Web applications. Like you, we are developers who are “in the trenches,” tasked with building Web-enabled applications that provide real value to our customers. As the Web continues to grow, the demand for more expressive and engaging interfaces will continue to increase.Much of the early hype surrounding Ajax centered on its use by Internet powerhouses such as Google and Amazon. However, just because the initial forays into Ajax were pioneered by leading software development firms doesn’t mean your application wouldn’t also benefit from these techniques. You already know how to develop Web applications, so this book uses specific, focused examples to teach the Ajax tools and techniques you’ll need to bring your applications to life. Armed with this book and your existing development expertise, you too will be able to apply Ajax techniques to your application to enrich the end user’s experience.When we first saw the potential of Ajax, we knew we had to start leveraging it for our own applications. Along the way we’ve learned some hard-earned knowledge that we thought needed to be shared with the rest of the development community. With this book you’ll be able to easily extend your own applications with Ajax and have fun while doing it. We hope that someday we’ll be reading about your great Ajax-enabled application!”

Table of contents :
Contents at a Glance……Page 5
Table of Content……Page 7
A Short History of Web Applications……Page 23
Browser History……Page 24
CGI……Page 25
Applets……Page 26
JavaScript……Page 27
Servlets and ASPs and PHP . . .Oh My!……Page 28
Flash……Page 31
The XML Derivatives……Page 32
The Fundamental Problem……Page 34
Ajax……Page 35
The Usability Question……Page 38
The Skill Set……Page 39
Usage……Page 41
Summary……Page 42
Overview of the XMLHttpRequest Object……Page 45
Methods and Properties……Page 46
An Example Interaction……Page 48
GET vs. POST……Page 50
A Remote Scripting Example……Page 51
How to Send a Simple Request……Page 53
A Simple Request Example……Page 54
A Word About Security……Page 56
DOM Level 3 Load and Save……Page 57
The DOM……Page 58
Summary……Page 59
Using the innerHTML Property to Create Dynamic Content……Page 61
Parsing the Response As XML……Page 64
Dynamically Editing Page Content with the W3C DOM……Page 70
Sending Request Parameters……Page 77
Sending Request Parameters As XML……Page 84
Sending Data to the Server Using JSON……Page 89
Summary……Page 95
Performing Validation……Page 97
Reading Response Headers……Page 101
Dynamically Loading List Boxes……Page 105
Creating an Autorefreshing Page……Page 112
Displaying a Progress Bar……Page 117
Creating Tooltips……Page 123
Dynamically Updating a Web Page……Page 128
Accessing Web Services……Page 137
Providing Autocomplete……Page 144
Summary……Page 150
Documenting JavaScript Code with JSDoc……Page 153
Usage……Page 154
Validating HTML Content with Firefox Extensions……Page 157
HTML Validator……Page 158
Checky……Page 160
Searching for Nodes Using DOM Inspector……Page 162
Performing JavaScript Syntax Checking with JSLint……Page 165
Performing JavaScript Compression and Obfuscation……Page 167
Using the Web Developer Extension for Firefox……Page 169
Object-Oriented JavaScript via the prototype Property……Page 170
Private Properties and Information Hiding with JavaScript……Page 175
Classical Inheritance in JavaScript……Page 176
Putting It All Together……Page 177
Summary……Page 180
Introducing the Test-First Approach……Page 183
Introducing JUnit……Page 185
Writing Tests……Page 186
Running Tests……Page 201
Using Standard and Custom Query Strings……Page 206
Working with JsUnit Server……Page 211
Getting Help……Page 213
Summary……Page 214
Debugging Ajax Requests with Greasemonkey……Page 215
Inspecting Ajax Requests and Responses with theXMLHttpRequest Debugging User Script……Page 216
Debugging JavaScript……Page 218
Using Firefox JavaScript Console……Page 219
Using Microsoft Script Debugger……Page 220
Using Venkman……Page 223
Summary……Page 239
Implementing the Fade Anything Technique (FAT)……Page 241
Implementing a Partial Page Paint……Page 242
Implementing a Draggable DOM……Page 243
Avoiding Common Gotchas……Page 244
Learning Where to Go for More……Page 246
Introducing Taconite……Page 248
The Solution……Page 249
What Does Taconite Do with the Content?……Page 250
Introducing Dashboard Applications……Page 251
Introducing the General Features……Page 252
Introducing the Design Features……Page 254
Analyzing the Code……Page 255
Analyzing the Weather Forecast Component……Page 257
Analyzing the Headline News Component……Page 264
How Does the Automatic Refreshing Work?……Page 267
Building a Better Autocomplete……Page 269
Summary……Page 271
Appending Rows to a Table……Page 273
Setting an Element’s Style via JavaScript……Page 274
Creating Input Elements……Page 275
Adding Event Handlers to Input Elements……Page 276
Creating Radio Buttons……Page 277
Summary……Page 278
Dojo……Page 279
TIBET……Page 280
RSLite……Page 281
XHConn……Page 282
Direct Web Remoting……Page 283
Microsoft’s Project Atlas……Page 284
Ruby on Rails……Page 285
Index……Page 287

Reviews

There are no reviews yet.

Be the first to review “Foundations of Ajax”
Shopping Cart
Scroll to Top