« AJAX Magazine moved, update your bookmarks | Main | Greasemonkey Hacks Book reviewed »

ACE, JavaScript Component for AJAX

http://ajax.phpmagazine.net/upload/2005/12/ace-thumb.png
I noticed today this new AJAX project called ACE, written by Li Shen and released under the The MIT License. AJAX Client Engine (ACE) is a JavaScript component that makes it easy to develop AJAX-style Web applications. Yet another AJAX implementation written in pure Javascript, which main features are :
  • Object-oriented API
  • Cross-browser support
  • Request options
  • Request parameter validation
  • Callback arguments
  • Callback options
  • Tracing service
  • Caching service
  • Polling service
  • Common callbacks
  • Exception handling

The component encapsulates the details of creating and calling the XMLHTTPRequest object completely. It provides an object-oriented API that is simple and yet powerful. The user only need become familiar with three JavaScript classes, Engine, Request, and Response, to access all the functionality of the XMLHTTPRequest object as well as additional framework services. It handles also the differences between Internet Explorer and Mozilla Firefox browsers in creating the XMLHTTPRequest object, transforming XML documents, and so on.

While in the test I noticed that the progress bar isn't working on firefox 1.5, and Internet explorer 6. Ace allow also the choice between asynchronous or a synchronous request by either providing a callback function or not. Li have written an article about ACE on the Dec 2005 issue of the asp.net PRO magazine.

You can find the documentation of ACE API online and also Sources for download.

Bookmark this article at these sites
Post a comment





(Email will remain hidden)





Please enter the security code you see here




Related entries
Email to a friend
Email this article to:


Your email address:


Message (optional):