Welcome Guest Search | Active Topics | Sign In | Register

Dialog - accessing parent window Options
mendy
Posted: Wednesday, September 1, 2010 10:10:39 AM
Rank: Member
Groups: Member

Joined: 5/27/2010
Posts: 22
Hi.

Can I invoke a callback from a dialog window to the parent window I called the dialog from?

For Instance:

I want to call a eo_Callback method. But the eo_Callback is in the parent window.
And I am in the dialog window now. the dialog is being used with ContentUrl.

I want that when the user clicks on a button in the dialog window, it should invode a callback from the parent window.

Thanks..
eo_support
Posted: Wednesday, September 1, 2010 12:08:36 PM
Rank: Administration
Groups: Administration

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

The ContentUrl is rendered inside an iframe. So you would use anything that works with an iframe. The only thing you want to be careful is not to AJAX updating the dialog (it would be like trying to take out the ladder you are standing on. Strange things will happen on different browsers if you try to do that). Other than that it’s exactly the same as if you do not use the dialog but put the page straight inside an iframe.

Thanks!
mendy
Posted: Wednesday, September 1, 2010 12:52:18 PM
Rank: Member
Groups: Member

Joined: 5/27/2010
Posts: 22
You are right.

A simple parent.function(); does the trick.

Thanks a lot.


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.