Detect when modal window is fully loaded
-
08-02-2021 - |
Pregunta
I'm using this piece of code (based on solution here) to check whether modal window fully loaded:
var dialog = SP.UI.ModalDialog.get_childDialog();
if (dialog != null && dialog.$e_0 != null) {
clearInterval(intervalDialogue);
}
This works perfectly in SP 2013 but in SP 2016 dialog.$e_0
is always undefined. Is there an alternative for SP 2016?
Solución
I've changed dialog.$e_0
to dialog.$i_0
and now it's working fine.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a sharepoint.stackexchange