Welcome Guest Search | Active Topics | Sign In | Register

Not Sure what is causing this, any ideas ? Options
Simon
Posted: Wednesday, March 21, 2012 12:56:57 PM
Rank: Member
Groups: Member

Joined: 8/19/2011
Posts: 15
I have just started getting this random error, but it always seems to be with the same code:

This is part of the line that gives me the error (marked in red):

this.bj=EO945.f.aac(this.apa);this.bj.style.position="absolute";this.aee(this.bj);this.bj.style.zIndex=EO945.f.aop()

The error is the variable 'bj' is null.

I know this is not much to go on, just wondered if you had any ideas, from some investigation I have done, I think it may have something to do with the Flyout, I have this in an ASP Updatepanel and the contents of the Flyout are a user control with a GridView in, but I don't get this error happening all the time, it seem intermittent, it may happen when I first run the application, or it may happen after clicking on a TreeView node, or even when I click in the Grid.

Thanks
Simon.


eo_support
Posted: Wednesday, March 21, 2012 1:37:31 PM
Rank: Administration
Groups: Administration

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

Based on the code you posted, we can only tell you that this occurs when the code tries display a popup (probably trying to open the Flyout control) when that popup does not exist (maybe before it has been loaded). If you can figure out what sequence of events/code would trigger this thus allow us to reproduce the problem we will be very happy to look further.

Thanks!
Simon
Posted: Friday, March 23, 2012 7:38:32 AM
Rank: Member
Groups: Member

Joined: 8/19/2011
Posts: 15
This is the issue I'm getting now:

SCRIPT5007: Unable to get value of the property 'className': object is null or undefined
eo_web.ashx?id=04685bbc-96dc-4ba4-98fc-10d6b8ff9c03, line 6 character 3901


I have a Div with some information in, this is updated via a javascript timer, I have the callback panel set to disable the control when the update occurs, it is at this point if you hover over the flyout when the control is disabled, the error above occurs, any help on a workaround for this would help.

Thanks
Simon.


Test Code to Reproduce the issue:
Code: HTML/ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestBed.aspx.cs" Inherits="TestBed" EnableEventValidation="false" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
    </asp:ScriptManager>
    <div>      
         <div id="tasksDiv" class="taskBar-Tasks">
            <eo:CallbackPanel ID="cbpUTasks" runat="server" ChildrenAsTriggers="True" UpdateMode="Self" Triggers="{ControlID:btnRefreshUnassignedTasks;Parameter:}" AutoDisableContents="True">
                <asp:Button ID="btnRefreshUnassignedTasks" runat="server" Text="RefreshUTasks" Style="display: none;" onclick="btnRefreshUnassignedTasks_Click" />
                <asp:Label ID="lblFlyout" runat="server" Text="New Tasks"></asp:Label>
                                 
                    <asp:Label ID="lblTasks" runat="server" Text="0" Font-Bold="true" ForeColor="White" BackColor="Red"></asp:Label>
                    <!-- This flyout is for the Tasks -->
                    <eo:Flyout ID="foTasks" runat="server" For="tasksDiv">
                        <ContentTemplate>
                            <div id="flyout">                                
                               This is the contents of the data grid.                          
                            </div>
                        </ContentTemplate>
                    </eo:Flyout>             
            </eo:CallbackPanel>
        </div>
    </div>
    <script language="javascript" type="text/javascript">
        var tmrDelay = 10000;   // Milliseconds.
        var timerID;

        startTimer();

        function startTimer(delay) {
            if (delay == null)
                delay = tmrDelay;

            window.setInterval(updateUnassignedTaskList, delay);
        }

        function stopTimer() {
            if (timerID != null)
                window.clearInterval(timerID);
        }

        function updateUnassignedTaskList() {
            var btnRefreshUTaskGrid = document.getElementById('<%= btnRefreshUnassignedTasks.ClientID %>');
            btnRefreshUTaskGrid.click();
        }
    </script>
    </form>
</body>
</html>

Backend code for the button.
Code: C#
protected void btnRefreshUnassignedTasks_Click(object sender, EventArgs e)
    {
        int task = int.Parse(lblTasks.Text);
        task++;
        // simulate getting data and other calls 
        System.Threading.Thread.Sleep(10000);        
        lblTasks.Text = task.ToString();
    }
eo_support
Posted: Friday, March 23, 2012 9:55:01 AM
Rank: Administration
Groups: Administration

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

We have posted a new build that should fix this problem. Please see your private message for the download location.

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.