Welcome Guest Search | Active Topics | Sign In | Register

A strange client-side script error! Options
Texwinca Developer
Posted: Wednesday, June 24, 2009 11:17:28 PM
Rank: Advanced Member
Groups: Member

Joined: 3/31/2009
Posts: 52
I placed a grid in a page. The following are some setting of the grid

Grid1.FullRowMode = false
Grid1.RunningMode = callback
Grid1.Grid1_CellSelected = Grid1_CellSelected

When I select a cell, I do the following thing in the Grid1_CellSelected function.

eo_Callback('cbp', 'View');

However, it always generate a client script error.

this.aalx is null

How to fix this error?
Texwinca Developer
Posted: Wednesday, June 24, 2009 11:18:50 PM
Rank: Advanced Member
Groups: Member

Joined: 3/31/2009
Posts: 52
I can give you our web-site URL, so that you could test it. Would you mind to give me your email address?
eo_support
Posted: Thursday, June 25, 2009 10:08:05 AM
Rank: Administration
Groups: Administration

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

This is normal. It occurs because eo_Callback unloaded the Grid, once your eo_Callback returns, the code continues to run into the Grid but the Grid has already been unloaded. To avoid this problem, use a setTimeout call to delay eo_Callback:

Code: JavaScript
setTimeout(function()
   {
        eo_Callback('cbp', 'View');
   }, 100);


This way the Grid code will finish first and then it will run eo_Callback.

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.