tags:

views:

18

answers:

2

Does anyone know of a way to determine whether the content of a dijit.dialog has become visible to the user? As in if the content of the dialog has actually been displayed yet or not.

Thanks

A: 

The function onDownloadEnd() is called when the dialog's download finishes.

You could connect your own code to that event using dojo.connect().

Abboq
thanks, didn't see that one
+1  A: 

There's also an onShow event that you could connect to, or even set:

dijit.byId("dialog1").onShow = function(){console.log("hello world")};

Bill Keese
Ah yes, good point