Monday, April 10th, 2006

XMLHttpRequest W3C Working Draft

Category: Ajax, JavaScript

The W3C announced that they would standardize the de-facto XHR object and the first draft has been released.

What does this mean for us? Well, it gives you some documentation, has a few hints from editors on curent implementation notes, and let’s us know that new XMLHttpRequest() will be the way to do things in the future (as it almost is with IE7 coming on board etc).

Example

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 by Dion Almaer at 6:26 am
4 Comments

++++-
4.1 rating from 57 votes

4 Comments »

Comments feed TrackBack URI

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

Pingback by BorkWeb » XMLHttpRequest Object W3C Working Draft — April 10, 2006

Web 2.0 Blogs

As I said before, Web 2.0 is fiery fire and there are tons and tons of websites devoted to 2.0 alone. This holds true in the blogosphere as well. Here I’ll be taking you across to some of the good Web 2.0 Blogs that you should definitely not miss…

Trackback by Chrono Tron - 100% — April 10, 2006

This is very exciting. I’ve been holding off learning too much about the XHR object because there hasn’t been much for standardization. It has been a pain in the past trying to learn the right way to do things after I’ve learned it another way.

Comment by Phil Ridlen — April 10, 2006

[…] Hoy es un gran día, ya que vía Ajaxian descubro que la W3C ha anunciado el primer borrador a cerca de la estandarización del Ajax. Todos sabemos que el objeto XMLHttpRequest() es algo complicado de controlar para que funcione en todos los navegadores, pues la W3C intenta que eso termine y que se aye una forma estandar de conseguir que la llamada remota sea algo más facil de implementar para todos los navegadores. […]

Pingback by aNieto2K | Lo que quiero, cuando quiero y como quiero » La W3C le mete mano al Ajax — April 10, 2006

Leave a comment

You must be logged in to post a comment.