Correct Way To Set Up A Sequence Of Synchronous/asynchronous Functions All Of Which Can Stop Form Submission And Further Processing?
I need to call some functions in sequence on form submit button click - func1() -> func2() -> func3() ... -> func7() -> ... All these functions do some kind of vali
Solution 1:
How about just one function in the submit handler:
<form action="" onsubmit="return func_test_all();">
</form>
Then inside your func_test_all()
you set up a Deferred pipe
and return false;
at the end to prevent immediate form submission.
I have to run, so I don't have a complete code sample; I hope you can figure out the Deferred ;-) will only be back in 3 hours or so.
Post a Comment for "Correct Way To Set Up A Sequence Of Synchronous/asynchronous Functions All Of Which Can Stop Form Submission And Further Processing?"