Async issue in FF

0 views
Skip to first unread message

LeonCowle

unread,
Feb 17, 2010, 7:03:05 AM2/17/10
to MochiKit
Hi,

I'm having some problems with the mochikit.async code in FF (only
tested in 3.6), whereas it works as expected in IE6/7 and Chrome.

I do something akin to:

function doIt() {
...
var myresult = doSimpleXMLHttpRequest( url, { foo : bar } );
myresult.addCallback( function(result) {
alert("test");
});
...
}

I call doIt (for example) from an onclick event (in my test case, from
a button).

To test I hit the button several times. My "url" cgi script has a
sleep in.

When running the above in IE6/7 or Chrome, the webserver logs show
multiple hits for the XMLHttpRequest call (i.e. as I hit the button
several times). When using FF, the webserver only shows one hit at a
time, and only the next hit once the first one has returned and its
callback func been completed.

Any ideas?

Leon

Reply all
Reply to author
Forward
0 new messages