views:

801

answers:

1

Take a look at the graphics part of the GoogleAPI reference. It says that loadImage takes either a string, or the responseStream property of an XMLHttp. By XMLHttp, I assume it means XMLHttpRequest.

My problem is that I can't find documentation for this field (the responseStream field) anywhere. I've had no luck googling it (ironc), it's not in "JavaScript: The Definitive Guide"... yet these gadgets that use it seem to work.

This post says that responseStream seems to not be accessible from a browser's XMLHttpRequest. From whose is it, then? Is it just a Google Desktop thing?

+3  A: 

Not at all, IIRC it was originally developed by Microsoft and has been part of IE since v5.0 (not sure about other browsers).

See the XMLHttpRequest at W3C page or Google answer.

EDIT: Finally found the article I was reading: MSDN > MSXML 2.0

responseStream

If you are requesting binary data, then the responseStream attribute contains the response data in a binary stream.

arul
er, I know that XMLHttpRequest is defined well, I meant the .responseStream property in particular =P.
Claudiu
for example, the reference you linked doesn't mention responseStream anywhere.
Claudiu
sorry, didn't clarify it enough.responseStream / responseBody - is not a part of the standard and has been proposed for future versions.
arul