Welcome Guest Search | Active Topics | Sign In | Register

Check dialog state using JS Options
Christiano
Posted: Tuesday, August 24, 2010 9:53:39 AM
Rank: Advanced Member
Groups: Member

Joined: 11/12/2008
Posts: 42
I've found only the Dialog.isMinimized test...

Is there a test to try if the dialog is Visible or Hidden on the client-side?


Tksss.
eo_support
Posted: Tuesday, August 24, 2010 10:56:45 AM
Rank: Administration
Groups: Administration

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

There is no direct API to check that now. However you can handle ClientSideOnInitDialog and ClientSideOnEnd to track the visible state of the dialog. The first handler is called before the dialog is displayed; the second is called when the dialog is closed.

Thanks!
Christiano
Posted: Tuesday, August 24, 2010 1:30:21 PM
Rank: Advanced Member
Groups: Member

Joined: 11/12/2008
Posts: 42
Tks...

Solved this using the following (simpler) approach:

document.getElementById("Dialog1").style.display

if "", then it's visible,
if "none", then, it's hidden..

eo_support
Posted: Tuesday, August 24, 2010 1:38:12 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. This will work too.

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.