homepage Welcome to WebmasterWorld Guest from 184.73.7.143
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library : Charter : Moderators: whoisgregg

JavaScript and AJAX Forum

    
Does jquery have a method to call a function with callback on success?
nelsonm




msg:4467272
 5:04 pm on Jun 19, 2012 (gmt 0)

hi all,

This may seem stupid, but i'll ask anyway...

Right now, i'm opening a jquery form dialog that calls functions to get data from the server to populate the form dialog fields.

The problem is that you see the form dialog fields being populated when the dialog opens. I'd like to hide or not open the dialog until the form dialog fields are done being loaded.

Similar to the .load method, I want to call a function on who's successful completion opens the jquery form dialog. More percisely, the function includes two nested functions. I want the main function its two nested functions to finish successfully before opening the dialog.

Is there a way to do this?

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved