[jQuery] Re: Concurrent Ajax request

2007-05-17 Thread Stefano Sala

Forget my request.
It is a .Net problem.

Tnx
Stefano



[jQuery] Re: Concurrent Ajax request

2007-05-16 Thread Stefano Sala

Noone? :(

here is a screenshot with the issue:
   http://ste.spa.it/upload/Immagine.png

the second post wait until the first finished...

Tnx in advance!!
Stefano

On 15 Mag, 16:04, Stefano Sala <[EMAIL PROTECTED]> wrote:
> Maybe it's a firefox limit?



[jQuery] Re: Concurrent Ajax request

2007-05-15 Thread Stefano Sala

Maybe it's a firefox limit?



[jQuery] Concurrent Ajax request

2007-05-15 Thread Stefano Sala

Hi everybody!
I'm trying to create a page that:
 - refreshes every 5 seconds some part of it.
 - if a button is pressed, to post data to a web service.

The problem is that the second ajax request wait until the first
finish, and doesn't run concurrently.

The code i use is this:

function SetOffertaAsta() {
if (confirm('Sicuro?')) {
$("div#" + divContenutorePulsanteOfferta).hide();
ScriviMessaggio('Elaborazione offerta...');
$.ajax({
url: WebServicePath + 'setOffertaAsta',
beforeSend: function () {
IsOffering = true;
},
complete: function() {
IsOffering = false;
},
global: false,
success: function (xml) {
GetInfoAsta(0, false);
OutputErrore(xml);
},
data: {
IdAsta: idAsta,
Valore: ProssimaOfferta
},
timeout: 15000,
type: 'POST'
});
}

return false;
}

and

function GetInfoAsta(pTimeoutServer, rilancia) {
$.ajax({
url: WebServicePath + 'getInfoAsta',
async: true,
error: function () { RichiestaCompleta(0, null, rilancia) },
success: function (XML) { RichiestaCompleta(1, XML,
rilancia) },
data: {
IdAsta: idAsta,
Timeout: pTimeoutServer
},
timeout: 1,
type: 'POST'
});
}

can anybody help?

Thanks!!
Stefano