Welcome Guest Search | Active Topics | Sign In | Register

Event when Dialog displays? Options
Abdu
Posted: Thursday, April 21, 2011 5:08:39 PM
Rank: Member
Groups: Member

Joined: 9/1/2010
Posts: 28

I would like to run a Javascript function as soon as when the dialog displays. The dialog displays content from another page using the ContentUrl property.

I tried ClientSideOnInitDialog and ClientSideOnLoad but they fire before the dialog displays.

eo_support
Posted: Thursday, April 21, 2011 7:52:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

ClientSideOnInitDialog is the correct one. It is fired right before the dialog is displayed so that you can initialize the dialog properly because anything is shown to the user. If that is a problem for you, you can use setTimeout to setup a timer to execute your code. That way by the time the timer is triggered, the dialog is already displayed.

Thanks!
Abdu
Posted: Thursday, April 21, 2011 9:38:29 PM
Rank: Member
Groups: Member

Joined: 9/1/2010
Posts: 28
That worked. Thanks.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.