Welcome Guest Search | Active Topics | Sign In | Register

Dialog and closing from content URL from server side code Options
Jacob Beard
Posted: Tuesday, April 5, 2011 4:27:12 PM
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!
eo_support
Posted: Tuesday, April 5, 2011 4:35:36 PM
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!
Jacob Beard
Posted: Tuesday, April 5, 2011 5:50:46 PM
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 . . .
Jacob Beard
Posted: Tuesday, April 12, 2011 8:02:47 PM
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?
eo_support
Posted: Wednesday, April 13, 2011 8:01:11 AM
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!


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.