im using code like this:
but when i use it to send multiple requests i dont have real multiprocessing: the webserver doesnt serve the result from one query before it has finished sending the result from the previous! is this what i should expect or can i trick it so i have for example 4 threads receiving the results of 4 queries?
------------------------
Code:
var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
}
if (x) {
x.onreadystatechange = function() {
if (x.readyState == 4 && x.status == 200) {
// -- use response
}
}
x.open("GET", url, true);
x.send(null);
but when i use it to send multiple requests i dont have real multiprocessing: the webserver doesnt serve the result from one query before it has finished sending the result from the previous! is this what i should expect or can i trick it so i have for example 4 threads receiving the results of 4 queries?
------------------------