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.
|
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
|