Tutorials Tutorials
Home
Tutorials
TutorialsAn Improvement To The Classic Ajax Coding Pattern
The pattern did not originate in the above article. In fact, the article links to Apple developer documentation which has the same pattern. It's an adequate pattern for a lot of purposes -- probably for most purposes, actually, but there is a problem with it. Note the use of a global variable req. The "A" in "Ajax" stands for "Asynchronous". It's not quite CS-101, maybe more like 201, but global variables and asynchronous code don't mix well.
Read Next: Build AJAX-Based Web Maps Using ka-Map
Related Topics
AjaxWith.com Offers
Sponsored Links
