Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XMLHTTPRequest Issues



I have a program that requires multiple XMLHTTPRequests. I use the
following code in a loop:

var req = new XMLHttpRequest();
req.onreadystatechange = process;
req.open("POST", "http://url.com:port/page.cgi";, true);
req.send("Lots and lots of XML")

When I run it the first time, everything goes smoothly, but when I run
it the second time, req.open fails to work - i.e. req.readyState stays
0 afterwards.

Any ideas?

Thanks,

David.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.