homepage Welcome to WebmasterWorld Guest from 54.226.235.222
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved