I have a strange problem. Or at least my code does…
On a page, I’m using JavaScript’s HTTPRequest object (in “ajax” fashion) to get some data from an ASP script.
At the same time, I use a second HTTPRequest object to get some more data from another ASP script.
The first script takes a few seconds to complete, but the second should return immediately. However, both return at the same time, after a few seconds. It’s as if IIS is not serving them asynchronously, which is weird.
I have set up a test page which simulates this effect:
http://www.activeorg.com/testrequest/
The source code can be downloaded if anyone wants to investigate why this is happening.. any ideas welcome, this is a real hair-puller!
Source: http://www.activeorg.com/testrequest/testrequest.zip
Thanks for any help. Would love to know why this isn’t working right.
[edit] what makes this extra-weird, is that when running it after waiting a while, it DOES work as intended (second script returns before the first). Subsequent tries result in both scripts returning at the same time. argh! ![]()