[HTML_AJAX-devel] Multiple async request parallel to the same server !

Daniel Heule courier at ipwar.ch
Mon Oct 22 18:20:50 MST 2007


Hello all,

im on a inhouse application with special needs.

I need to make on 2 different broser windows on the same broswer (firefox)
1 async calls on each window, each call is a long time call (waiting for
data from other clients,
if the data are ready, the request is comming back with the data).

But my Porblem is that the request from the second page (startet as
second call)
is waiting until the first call has finished his work. But i need that
any call i make are realy parallel, each on a separate server process at
the same time !

Can someone help me out, i have no idea why it's not working !

Thank's Daniel Heule

I have made som test-stub code :
// $queue is a separate integer, each browser window shuld have his own
queue
HTML_AJAX.Open = function() {};
HTML_AJAX.Load = function() {};
HTML_AJAX.queues['<?php echo $queue;?>'] = new HTML_AJAX_Queue_Immediate();


var url = 'test.php?sleep=25';
function grabSync() {
    document.getElementById('target').innerHTML = HTML_AJAX.grab(url);
}

function grabAsync() {
    HTML_AJAX.grab(url,grabCallback,{timeout:30000,queue:'<?php echo
$queue;?>'});
}

function grabCallback(result) {
    document.getElementById('target').innerHTML = result;
}




More information about the Html_ajax-devel mailing list