Skip to content


XMLHttpRequest Object W3C Working Draft

I found this article over at Ajaxian. W3C has taken notice of the use of the XMLHttpRequest and has decided to standardize it! w00t! W3C says:

The XMLHttpRequest object is implemented today, in some form, by many popular Web browsers. Unfortunately the implementations are not completely interoperable. The goal of this specification is to document a minimum set of interoperable features based on existing implementations, allowing Web developers to use these features without platform-specific code. In order to do this, only features that are already implemented are considered. In the case where there is a feature with no interoperable implementations, the authors have specified what they believe to be the most correct behavior.

This is pretty exciting because we can now see a proposed consistent method for using the object will be solidified in future browsers! Now...lets hope the browsers implement it quickly :) Oh, and here's an example of setting a Request Header:

JavaScript:
  1. // The following script:
  2. var r = new XMLHttpRequest();
  3. r.open('get', 'demo.cgi');
  4. r.setRequestHeader('X-Test', 'one');
  5. r.setRequestHeader('X-Test', 'two');
  6. r.send(null);
  7.  
  8. // ...would result in the following header being sent:
  9. ...
  10. X-Test: one, two
  11. ...

Posted in Blog, Random News.

Tagged with , , , , , .


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Continuing the Discussion

  1. justaddwater.dk | XMLHttpRequest soon becoming W3C standard linked to this post on April 10, 2006

    [...] I just found out (via BorkWeb) that the W3C is looking to standardizing the XMLHttpRequest object which is the foundation for all AJAX based applications. [...]



Some HTML is OK

or, reply to this post via trackback.