CMS News, Reviews and Resources
Content Management Matters ™
 
 

Have XMLHttpRequest Your Way...Last Chance

W3C

If you like to review W3C standards before they become official, here's one you need to take a close look at. The W3C Web API Working Group has published the Last Call Working Draft of "The XMLHttpRequest Object" specification.

The XMLHttpRequest Object specification outlines a standard for sending data between a client and a server via a scripting engine. The data can be in XML or any text based format and can be transmitted over either HTTP or HTTPS.

The specification relies on the DOM, HTML 5 and HTTP specifications. All conforming user agents must support these specifications to some degree (or completely).

SPONSORSHIP
CMSWire speaks to a specific audience of professionals. You can too. Advertise here.

A quick overview of the XMLHttpRequest object tells us that there are:

Five States

  • UNSENT: The state when first constructed.
  • OPENED: Means the open() method has been successfully invoked. Request headers can be made and the request be sent.
  • HEADERS_RECEIVED: The state when the response headers have been received.
  • LOADING: The state when the response entity body is being received.
  • DONE: This state means the data transfer is complete or something has gone wrong.

One Event

  • readystatechange: This event must implement the Event interface and it's namespace URI attribute must be null. It also must not bubble or be cancel-able

Exceptions

The specification uses the DOMException object defined in DOM Level 3 Core. All exceptions are part of the group ExceptionCode. The specification extends this group with three new constants: SECURITY_ERR = 18, NETWORK_ERR = 101 and ABORT_ERR = 102

This specification is one of the missions of the W3C Rich Web Clients Activity who aim to improve the client-side experience of the web.

You have until June 2, 2008 to submit comments on the specification. Ensure your email has either [XHR] or [XMLHttpRequest] as the beginning of the Subject Line or it may get lost in the shuffle.


Did you find this useful?

Be the First to Comment

  Remember me?

Related Web Publishing Articles

 
 

From our Job Board  View all jobs | feed Jobs RSS feed | Post a job right now

 

Featured Events  View all events | feed Events RSS feed | Add your event

Add to Technorati Favorites
STAY UP TO DATE
Subscribe to our RSS feed...
SUBSCRIBE TO OUR RSS FEED