|
Rank: Newbie Groups: Member
Joined: 12/5/2008 Posts: 5
|
Using a Dialog w/ content URL. I'm trying to close the dialog from the server side code in the content URL but seem to be closing the calling page as well. Any suggestions on where to attack this from to just close the content URL window/dialog from the content url server side code?
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The dialog can be closed by:
1. User clicks the close button on the client side; 2. You explicitly call the dialog's close/cancel method on the client side; 3. You post back the page that contains the dialog. This occurs because the dialog is destroyed when the page is reloaded, thus if the dialog itself is not being reloaded (for example, you are doing an AJAX callback that does not update the dialog), then it won't close;
You can pick any condition from above that fits your code logic and then try to find out why the condition is not meet because as long as any of the condition is met, the dialog will close.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 12/5/2008 Posts: 5
|
I guess I was thinking that the page loaded as the content URL wouldn't be in the same scope as page containing the dialog. I'll look into that more, unless that's not true . . .
|
|
Rank: Newbie Groups: Member
Joined: 12/5/2008 Posts: 5
|
Sorry for being dense here, but I'm not seeing how to call the dialog's close method from another asp.net page as that dialog is not in scope for the secondary page, right?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You can not access the dialog from the secondary page on the server side. You may or may not be able to access the dialog from the secondary page on the client side, depending on the domains of the two pages. You will want to search cross page scripting for more information. It has nothing to do with us.
Thanks!
|
|