-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> var stream=channel.open(); > For what it's worth, this does a synchronous load. This is not > supported by all channels, and badly supported by most. Of course you > may not care if you make the UI unusable while your data loads... that's right. i am in asynchronous mode for starting the download, up to getting the response headers, then i block while downloading the response content. i don't like this but it is acceptable in my situation as the maximum size if 20-30KB. i may try to use channel.asyncOpen with a stream listener later on. concerning the synchronous load not being always supported, i am only using http requests through XmlHttpRequest. Is there any chance that fails in some situations ? /mig -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFeEZbtMkIv0/ruZgRAu2vAKCaUp9YX2iDlI7nFzkpDacPX/9FCwCgimBd mYZwTVwweXSo703zQCo31vI= =eyKC -----END PGP SIGNATURE----- _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
