The Form Assembly:
Treating the HTTP Status code right
Via this post on Ajaxian.com today, there's a pointer to a new article from The Form Assembly talking about ways to deal with the return code response the server passes back to Ajax.

If you've been following the whole Ajax thing for a while, you�ve certainly seen this few lines of code hundreds of times. You know, the ones that check the readyState and status properties of a xmlHttpRequest.

Things change when you start developing Ajax-style with XmlHttpRequest. You are basically by-passing the browser native handling of HTTP and left dealing with the status code on your own. And, that�s a great opportunity. Why ? Because you can use it to relay information about the execution of your server-side scripts.

They give you some sample codes the server could return and show you how to harness them in your Ajax app for use in things like error handling and flow control...

Share your thoughts on "Treating the HTTP..." (0 comments)



<< Have a commment to share? Speak up now! >>


 All content copyright, 2005 AjaxDeveloper.org :: [email protected]