Welcome to WebmasterWorld Guest from 54.156.92.140

Forum Moderators: open

Message Too Old, No Replies

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

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

Full Member

5+ Year Member

joined:June 30, 2008
posts: 318
votes: 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?