9. The Future of Ajax

Where Do We Go From Here?

As you write more Ajax applications, you will confront many of the same issues over and over again. Every time you solve a general problem, it'll be helpful to put that piece of JavaScript to one side so you can reuse it later. It makes sense to abstract your code into reusable pieces—that's what I did with the Hijax object. Eventually you will have a handy collection of code at your fingertips.

Building a Javascript Library

Here are just some of the issues that you may come across while building up your own personal library of reusable code.

Event handling

I've been using straightforward event handlers like onclick and onsubmit. These work in all browsers, but they have a major drawback: you ...

Get Bulletproof Ajax now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.