Hi,
If the contents of the dialog is a different page (when you use the dialog's ContentUrl property), then that page and the hosting page are two different pages. In this case the dialog page is hosted inside an iframe, so you can do something like this to close the dialog:
Code: JavaScript
//Close dialog "Dialog1" in the parent window from inside an iframe
parent.eo_GetObject("Dialog1").close();
Note the second half of the code:
Code: JavaScript
eo_GetObject("Dialog1").close();
Is what you would do if you wish to close the dialog in the same page. However since in this case you are calling from inside an iframe, so you would add "parent" to it.
Hope this helps.
Thanks!