Welcome Guest Search | Active Topics | Sign In | Register

Trying to display EO Dialog from inside EO callback object Options
Darrell Reinke
Posted: Wednesday, July 30, 2008 12:41:04 PM
Rank: Advanced Member
Groups: Member

Joined: 7/18/2008
Posts: 76
I have an EO dialog box created with an EO datagrid inside of the dialog box. Those two controls are placed within EO callback panel. I am able to successfully initiate the call back to the server to populate the EO datagrid (I know this through debugging), however, after the callback to the server to populate the datagrid, I am unable to get the display to show on the web page.

On the EO callback panel I have placed the following javascript function in the ClientSideAfterExecute = showDlg

Code: JavaScript
function showDlg(callback){
   alert("about to show dialog");
   eo_GetObject("dlgWindow").show();
}


When the javascript executes it first shows the alert and when I click on "OK" I get the following error:
EO.Web Controls Client Side Debug Message:
An error occurred while applying the new output. Error message: 'null' is null or not an object...

I suspect I am doing something wrong with where I am placing the eo_GetObject function. I have tried putting the eo_GetObject function directly in the ClientSideAfterExecute and that does nothing at all.

Any assistance would be greatly appreciated.
eo_support
Posted: Wednesday, July 30, 2008 12:51:12 PM
Rank: Administration
Groups: Administration

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

The new dialogs are not intialized yet when ClientSideAfterExecute occurs. So you want to delay calling eo_GetObject as soon as possible. So you can do:

Code: JavaScript
setTimeout(
   function() {
       eo_GetObject("dlgWindow").show();
   }, 10);


That should get it going.

Thanks
That way


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.