Welcome Guest Search | Active Topics | Sign In | Register

Dialog Box Resize & Close Issue Options
Raj
Posted: Sunday, November 13, 2011 8:34:23 PM
Rank: Newbie
Groups: Member

Joined: 6/26/2011
Posts: 1
I have two questions regarding dialog box control.

1. How can I dynamically re-size a dialog based up on the content filled in it... Please note I am filling the content of a dialog like below.
function ShowPopup(url) {
var dlg = eo_GetObject('PopupDialog');
dlg.setContentUrl(url);
dlg.resize(650, 324); //I need to replace this size with content height and width
dlg.show(true);
}

3. Since my content URL is dynamically loading a user control inside.. I want to place a 'Close' button which should close the dialog box.... Right now its not able to find the eo_GetObject('PopupDialog');

Please answer the questions ASAP... I would highly appreciate the help.
eo_support
Posted: Monday, November 14, 2011 7:21:06 AM
Rank: Administration
Groups: Administration

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

As to your question:
1. You will need to figure out the page size yourself;

2. The dialog uses an iframe to load your Url. So you would do it the same way as calling into the host window from an iframe;

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.