Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Perlmonks AJAX Voting (greasemonkey plugin)by citromatik (Curate) |
on Dec 13, 2007 at 11:17 UTC ( [id://656805]=note: print w/replies, xml ) | Need Help?? |
Maybe I'm wrong, but I see that you are using global xmlHttpReq objects in asynchronous requests. This could lead into problems, because a second (and successive) asynchronous request (i.e. a second vote in the page) will overwrite previous ones if they are not finished and you'll never receive a response from them. There are some ways of solving this, for example, putting multiple xmlHttpReq objects in an array. Sorry if I misread your code citromatik
In Section
Perl Monks Discussion
|
|