how about opening dialog in callback of AJAX loading the content? Xi Shen wrote: http://plugins.jquery.com/project/ajaxqueuemaybe this is what you want. On Mon, Sep 28, 2009 at 10:55 PM, Mesquite <koen.buekenh...@gmail.com> wrote:I'm trying to load a JQuery dialog containing content from the backend. JQuery places this dialog vertically in the middle of the page when the dialog open call is executed. But the moment that happens, another function is still loading data and parsing that data in the dialog. So it is not completed yet. This way, the dialog is not centered in the middle of the page because the height will more that initially calculated. That's why I want to wait to open the dialog until I'm finished. Is the only way placing this call at the end of the flow? On 28 sep, 16:39, Erik Beeson <erik.bee...@gmail.com> wrote: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() { } |
- [jQuery] Synchronous call in JQuery? Mesquite
- [jQuery] Re: Synchronous call in JQuery? Erik Beeson
- [jQuery] Re: Synchronous call in JQuery? Mesquite
- [jQuery] Re: Synchronous call in JQuery? Xi Shen
- [jQuery] Re: Synchronous call in JQuery? Charlie