JQuery Clear Queue events
<p>I'm working on a colorpicker.
My idea is to update a MySQL database thru Ajax requests, while clicking a color inside a colorpicker.
I'm using farbtastic colorpicker.
My problem is that if you move mouse while the button is down, I have a lot of requests, because the color is changing (I hope it's clear what happens).
This is my code:</p>

<pre><code>$('.colorpicker').live('click', function() {
    $this = $(this);
    $.farbtastic('#picker').linkTo(function(color){
            $this.css({'backgroundColor':color});
            $.ajax({
                    type:"GET",
                    url:"data.php?color="+color,
                    success: function(data){
                    /* SOME EVENTS */
                    }
            });
    });
    return false;
});
</code></pre>

<p><code>.colorpicker</code> it's my div (where I change background color)</p>

<p><code>#picker</code> it's the farbstatic colorpicker</p>

<p>How to "skip" all (AJAX) requests while clicking and moving mouse? I want to catch only the  last request just before "mouseup"?</p>
