Discussion:
xmlhttp Post use a signal instance to send multiple posts
(too old to reply)
Russ
2005-09-30 10:04:06 UTC
Permalink
Hi all,

If have my working bit of XMLHttp works great but me being a pain in the
butt want to alter it slightly to make it less resource hungry.

My question is . when you delcare the xmlhttp.open command does this
actually attach itself to the destination or does it attach itself only witht
the send command is used.

the idea is that I can open a destination and send different data to the
desintation with out having to close the object and open a new one
continually.

I would just cycle through the xmlhttp.send command with new bits of data.

(I batch process 1000 sets of data in one go and the client does not use
XML :( ) but there you go.

any thoughts greatly appreciated

cheers Russ
Martin Honnen
2005-09-30 11:18:56 UTC
Permalink
Post by Russ
My question is . when you delcare the xmlhttp.open command does this
actually attach itself to the destination or does it attach itself only witht
the send command is used.
You can reuse an instance but you should be aware that there is an abort
method to abort previous requests. And in my understanding doing open()
once and then multiple send() calls is not the way the object is
designed to be used, if you want to make multiple calls make multiple
open() and send() calls then as needed.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Loading...