My online game is going great, but I've spotted a problem that I cant' fix. Repeatedly clicking a button with a JQuery.load() function on it causes the requests to be "stacked".
I've hunted everywhere for a solution, but I can't find one. I need a way of checking if there's already a .load/AJAX request in progress, and if so, abort any others.
Without a solution, people could use auto-clickers in my game, which is something I really don't want. Not even autoclickers, but even someone with an excited finger could stack a bunch of requests which are all thrown at the server at once...
Problem much?
Answers appreciated. Thanks.
I've hunted everywhere for a solution, but I can't find one. I need a way of checking if there's already a .load/AJAX request in progress, and if so, abort any others.
Without a solution, people could use auto-clickers in my game, which is something I really don't want. Not even autoclickers, but even someone with an excited finger could stack a bunch of requests which are all thrown at the server at once...
Problem much?
Answers appreciated. Thanks.