Your question doesn't make very much sense. In your example,
doSomething2 would execute after doSomething1 finished, so it is
synchronous.

Perhaps you could provide an example of what you're actually trying to do?

--Erik


On Mon, Sep 28, 2009 at 6:24 AM, Mesquite <koen.buekenh...@gmail.com> wrote:
>
> Is there a JQuery way to execute a custom function 'after' another
> custom function is executed?
> The second function must wait until the first one has finished. (Not
> asynchronous but synchronous)
> Important: I don't want place the call to the second function in the
> first one.
>
> for example:
>
> doSomething1();
> doSomething2();
>
> function doSomething1() {
> }
>
> function doSomething2() {
> }
>

Reply via email to