Whats the easiest way to reactive a submit() action that was cancelled with 'return false'
<p>I have some image buttons that have jQuery event handlers attached to them.</p>

<p>I want to make an AJAX call in the click() event to determine if the action should actually be allowed. Because I am doing an async ajax call I have to return 'false' to immediately cancel the event and wait for the response.</p>

<pre><code>$('[id^=btnShoppingCartStep_]').click(function() {

 var stepName = this.id.substring("btnShoppingCartStep_".length);

 $.ajax({
            type: "POST",
            url: $.url("isActionAllowed"),
            data: "requestedStep=" + stepName,
            dataType: "json",

            success: function(data) {

                if (data.allowed) {

                    // need to resume the action here
                }
                else {
                    AlertDialog(data.message, "Not allowed!");
                }

            }

        });

        return false;
    });
</code></pre>

<p>I need to find the best way to resume the click event if the AJAX call determines that it should be allowed.</p>

<p>Any way of doing this that I can come up with seems clumsy, such as :</p>

<p>1) remove event handler from the buttons</p>

<p>2) simulate a click on the button that was clicked</p>

<p>Is there any nice way of doing this that I'm missing?</p>
