Wednesday, April 16th, 2008
Last call for W3C XMLHttpRequest comments
<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:
loadevent andonloadattribute;errorevent andonerrorattribute;progressevent andonprogressattribute;abortevent andonabortattribute;- Timers have been suggested, perhaps an
ontimeoutattribute; - Property to disable following redirects;
responseXMLfortext/htmldocuments;- Cross-site
XMLHttpRequest; responseBodyto deal with byte streams;overrideMimeTypeto fix up MIME types;getRequestHeader()and
removeRequestHeader().
If you have some final thoughts, let them know!
Related Content:











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