Wednesday, April 16th, 2008

Last call for W3C XMLHttpRequest comments

Category: Standards, XmlHttpRequest

<p>The W3C has issued a last call on the XMLHttpRequest spec:

The Web API Working Group has published the Last Call Working Draft of The XMLHttpRequest Object. The XMLHttpRequest Object specification defines an API that provides scripted client functionality for transferring data between a client and a server. Comments are welcome through 2 June. Learn more about the Rich Web Client Activity.

It is nice to see things all speced out, including the fact that you can now get back real errors (SECURITY_ERR, NETWORK_ERR, ABORT_ERR).

There are future thoughts for the spec.next too:

  • load event and onload attribute;
  • error event and onerror attribute;
  • progress event and onprogress attribute;
  • abort event and onabort attribute;
  • Timers have been suggested, perhaps an ontimeout attribute;
  • Property to disable following redirects;
  • responseXML for text/html documents;
  • Cross-site XMLHttpRequest;
  • responseBody to deal with byte streams;
  • overrideMimeType to fix up MIME types;
  • getRequestHeader() and
    removeRequestHeader().

If you have some final thoughts, let them know!

Related Content:

Posted by Dion Almaer at 11:01 am
2 Comments

++++-
4.2 rating from 23 votes

2 Comments »

Comments feed TrackBack URI

I would like to have upload files, perhaps with Base64

If I understand ok what you ask for (I only read your post, sorry if I’m saying something off topic)

Comment by Garito — April 16, 2008

Yes, the ability to upload file through Ajax could be very useful.
And by also using the progess attribute, we won’t need anymore stuff like CGI script.

Comment by Nyro — April 18, 2008

Leave a comment

You must be logged in to post a comment.