Welcome Guest Search | Active Topics | Sign In | Register

How to hide modal Dialog with javascript Options
hunpirate
Posted: Thursday, July 6, 2017 1:27:54 PM
Rank: Advanced Member
Groups: Member

Joined: 6/14/2007
Posts: 83
Hi,

Could someone help me out how to call a closing an Dialog box through java script? I have an html object in my Dialog that if some one clicks on, calls for a javascript and during execution I'd like to close the dialog just like if they clicked on the <OK> button. I went through several tries like eo_GetObject('dlgMsg').InitialState('hidden'); with no result.




Thanks

Steve Komaromi

Computer Systems Manager, Lead Developer
Business Risk Partners, Inc.
Tel: 1-(860)-903-0039
eo_support
Posted: Thursday, July 6, 2017 4:49:13 PM
Rank: Administration
Groups: Administration

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

You just close its close method:

https://www.essentialobjects.com/doc/jsdoc.public.web.dialog.close.aspx

So it should be something like this:

Code: JavaScript
eo_GetObject('dlgMsg').close();


Thanks
hunpirate
Posted: Friday, July 7, 2017 9:13:46 AM
Rank: Advanced Member
Groups: Member

Joined: 6/14/2007
Posts: 83
Works like a charm, thanks


Thanks

Steve Komaromi

Computer Systems Manager, Lead Developer
Business Risk Partners, Inc.
Tel: 1-(860)-903-0039
eo_support
Posted: Friday, July 7, 2017 1:55:47 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,225
You are welcome. Please feel free to let us know if there is anything else.


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.