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. ...

Discuss This Article


One Response to “XMLHttpRequest Object W3C Working Draft”

  1. pingback pingback:
    justaddwater.dk | XMLHttpRequest soon becoming W3C standard

    [...] 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. [...]

    Reply to this comment.
    1

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comment Preview:

 (285) - xmlhttprequest (16) - dota w3c (3) - XMLHttpRequest demo (2) - w3c (1) - ajax xmlhttprequest demos (1) - working of xmlhttp object (1) - xmlhttprequest object oriented (1) - dota.w3c (1) - JavaScript Object w3c (1) - XMLHttpRequest Object Demo (1) - ai (1) - response object w3c javascript (1) -