javascript - event for when dialog is fully loaded -


i trying add jscrollpane dialog once dialog loaded. tried using dialogopen , dialogfocus events seems these trigger early. there event can subscribe tells me dialog loaded , displayed , safe call jscrollpane? right i'm adding half second timeout seems hacky , shows user broken dialog half second.

any other solutions welcome.

$("#diagbox").load($(this).attr('href'), function() {         $dialog.imagesloaded(function() {              $dialog.dialog('open');             $dialog.dialog("option", "position", "center");             settimeout(function(){                 $('input, textarea').placeholder();                 $('.scroller').jscrollpane();                 positionelements();             },500);           });     }); 


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -