|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
|
|
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
|
|
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!
|
|