Welcome to WebmasterWorld Guest from

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)

5+ Year Member

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?

Featured Threads

Hot Threads This Week

Hot Threads This Month