Welcome Guest Search | Active Topics | Sign In | Register

Check if a Dialog is shown Options
Camarate
Posted: Friday, September 17, 2010 2:44:20 PM
Rank: Advanced Member
Groups: Member

Joined: 9/2/2010
Posts: 120
Hi,

In Javascript, how can I check if a Dialog control is shown?

Thanks, Marcelo Camarate
eo_support
Posted: Friday, September 17, 2010 2:52:40 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Camarate
Posted: Friday, September 17, 2010 3:39:35 PM
Rank: Advanced Member
Groups: Member

Joined: 9/2/2010
Posts: 120
Hi eo_support,

Than ks for your quickly reply.

Loook the code below:

Code: JavaScript
function ClickModal()
    {
        eo_GetObject('Dialog1').show(true);
        
        if ("Dialog1 control is closed")
        {
            Do some commands after the Dialog1 control be closed
        }
    }


If not, how can I deploy using other command?

Regards, Marcelo Camarate
eo_support
Posted: Friday, September 17, 2010 3:59:17 PM
Rank: Administration
Groups: Administration

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

Please revisit the previous post we provided. It already answered "if ("Dialog1 control is closed")" question.

You should not check the dialog's close status right after you called show method. That method is non-blocking, regardless whether your dialog is modal or not. So if you check the status immediately after show, you will always see the dialog visible.

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.