On this web page I have a copy function that uses flash swf. I load the contents to be copied just before setting up the copy. I do this with the .load(). But it seems that .load is asynchronous. Is there a way to call setup_copy after the .load is done? How can I make sure of this?
$('#commentary').load('commspanish.php');
setup_copy('copy_commentary','commentary');
Use load complete callback: