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..
|
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!
|
Rank: Member Groups: Member
Joined: 5/27/2010 Posts: 22
|
You are right.
A simple parent.function(); does the trick.
Thanks a lot.
|