DevPinoy.org
A Filipino Developers Community
   
Ajax Anti-Patterns

I've been working with alot of Ajax lately(this includes code and laundry :P) and just realized that i've been doing some unecessary code after reading this article. I think I got hooked so much with the Ajax-hoopla that I forgot that not everything should be done via Ajax.

Below is an outline of what Jack Herrington suggested.

  • Polling on a timer when you don't need to
  • Not inspecting the return results in the callback
  • Passing complex XML when HTML would be better
  • Passing XML when you should pass JavaScript code
  • Doing too much on the server

Read more about this article here.

*Update: I did some research and found out that Michael Schwarz, the creator of Ajax.NET has also a great list of things to avoid in his article Top 10 Mistakes When Using Ajax. Great read.


Posted 03-23-2007 10:45 AM by keithrull

Comments

lamia wrote re: Ajax Anti-Patterns
on 03-23-2007 10:50 PM

Keith, how about an AJAX devcast! :)

Copyright DevPinoy 2005-2008