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
Post a Comment