hi
im trying to achieve asynchronous loading of data with asp.net using some ajax tricks. here's a javascript function i use:
i call it several times like this:
and expect that after the requests are sent the responses will be handled in different threads and there will be no waiting - the data will be filled simultaniously, or so i dreamt.
in reality i can see that the requests are fired immediately(asyncroniously indeed), but the server doesnt send me the results from one asp.net page until it has fully processed and sent results from the previous page.
is this what should really happen? or is it IIS? or .. ?
please advise
thanx
------------------------
im trying to achieve asynchronous loading of data with asp.net using some ajax tricks. here's a javascript function i use:
Code:
function asyncLoader(url,id1, id2) {
var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
if (x) {
x.onreadystatechange = function() {
if (x.readyState == 4 && x.status == 200) {
onstatechangehandler();
}
}
x.open("GET", url, true);
x.send(null);
}
}
Code:
asyncLoader('[URL unfurl="true"]http://localhost/Demo/result1.aspx',id1,[/URL] id2);
asyncLoader('[URL unfurl="true"]http://localhost/Demo/result2.aspx',id1,[/URL] id2);
asyncLoader('[URL unfurl="true"]http://localhost/Demo/result3.aspx',id1,[/URL] id2);
in reality i can see that the requests are fired immediately(asyncroniously indeed), but the server doesnt send me the results from one asp.net page until it has fully processed and sent results from the previous page.
is this what should really happen? or is it IIS? or .. ?
please advise
thanx
------------------------