Keeping Up With The Ajax Trend
Does Ajax mean the evolution of a new breed of Web developer?
The Usual Suspects
As with any good Web application, an Ajax application should maintain a clear separation among the content of the page, the rules for presenting the content, and the code that provides for user interaction with the page. In traditional Web applications, all three of these aspectsthe content, presentation, and codeare all present in their entirety when the page is initially loaded. What Ajax brings to the table is the ability to make everything dynamic. New content, new presentation rules, and new code can be sent to and from the client, allowing for much more complex Web pages to be created. Instead of having to encapsulate a single set of functionality into a page, and then have the user redirected to a different page when a new set of functionality is required, you simply can load new rules and content into the existing page when it is needed. This creates a far more fluid experience for the end user, because refreshing the entire page is a time-consuming, disorienting experience.
Keeping an Eye on the Wire
Tools for Ajax Development
One type of tool that has always been of some value for debugging Web applications, but is now vital for Ajax applications, is the HTTP proxy. Ajax applications consist of a client part that exists in the Web browser, and a server part that exists on a Web server, and the two communicate using the HTTP protocol. Being able to listen in on this communication is vital to debugging an Ajax application, and there are a number of tools to do so. Any HTTP proxy will let you observe the traffic, but there are some proxies that have been specially designed for debugging web applications. One such proxy is the Fiddler HTTP Debugger . Fiddler HTTP Debugger sits between the web browser and the web server, intercepting the requests and responses. The tool allows you not only to view the contents of the requests and responses, but to alter the contents. You can manually alter the contents of either the requests or responses, or you can use the built in JScript .NET event-handling engine to add in automated rules for altering the data. Fiddler has a rich API, and is extremely extensible, and so it should be a part of any Ajax developer's toolkit, if they use Windows of course. There are also many open source HTTP Proxies, such as Spike Proxy , but Fiddlers tight integration with Internet Explorer makes it very useful.
Microsoft Fiddler HTTP Debugger