javascript runtime error not handled even with code
<p>I have this code in my masterpage:    </p>

<pre><code>&lt;script type="text/javascript"&gt; 
function silentErrorHandler() { return true; }
    window.onerror = silentErrorHandler;
alert("handled");
&lt;/script&gt;
</code></pre>

<p>But I am still getting this error:
Error: Unable to get value of the property 'scrollLeft': object is null or undefined</p>

<p>How can I fully suppress these errors without having to set the disable script debugging in ie?</p>

<p>I would fix the error but I have spent too long looking at this issue and no one has commented on my other post:
<a href="http://stackoverflow.com/questions/7915208/jscript-runtime-error-on-callback-using-updatepanel">JScript runtime error on callback using updatepanel</a></p>

<pre><code>&lt;%@ Page Title="" Language="VB" MasterPageFile="~/WinPlan.master" AutoEventWireup="false"
    CodeFile="Scheduler.aspx.vb" Inherits="Scheduler" %&gt;

&lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act" %&gt;
&lt;%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %&gt;
&lt;asp:Content ID="PageHeadContent" ContentPlaceHolderID="page_header_content" runat="Server"&gt;
    &lt;asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server" EnableViewState="true"&gt;
    &lt;/asp:ScriptManagerProxy&gt;
    &lt;asp:UpdatePanel ID="upnlSearchBar" runat="server"&gt;
        &lt;ContentTemplate&gt;
            &lt;div class="searchBar"&gt;
                &lt;table id="userSearchBar"&gt;
                    &lt;tr&gt;
                        &lt;td align="left"&gt;
                            &lt;asp:Label ID="Label1" runat="server" Text="From: " Font-Bold="true" Width="50"&gt;&lt;/asp:Label&gt;
                        &lt;/td&gt;
                        &lt;td align="left"&gt;
                            &lt;asp:TextBox ID="txtFromDate" runat="server" Width="80"&gt;&lt;/asp:TextBox&gt;
                            &lt;asp:ImageButton ID="imgCalendarFrom" runat="server" Width="18" ImageUrl="~/Images/SmallCalendar.gif" /&gt;
                            &lt;act:CalendarExtender ID="CalendarExtenderFrom" runat="server" Format="dd/MM/yyyy"
                                Enabled="true" PopupButtonID="imgCalendarFrom" TargetControlID="txtFromDate"&gt;
                            &lt;/act:CalendarExtender&gt;
                        &lt;/td&gt;
                        &lt;td align="left"&gt;
                            &lt;asp:Label ID="l3" Text="" runat="server" Width="20"&gt;&lt;/asp:Label&gt;
                        &lt;/td&gt;
                        &lt;td align="left"&gt;
                            &lt;asp:Label ID="Label2" runat="server" Text="To: " Font-Bold="true" Width="30"&gt;&lt;/asp:Label&gt;
                        &lt;/td&gt;
                        &lt;td align="left"&gt;
                            &lt;asp:TextBox ID="txtToDate" runat="server" Width="80"&gt;&lt;/asp:TextBox&gt;
                            &lt;asp:ImageButton ID="imgCalendarTo" runat="server" Width="18" ImageUrl="~/Images/SmallCalendar.gif" /&gt;
                            &lt;act:CalendarExtender ID="CalendarExtenderTo" runat="server" Format="dd/MM/yyyy"
                                Enabled="true" PopupButtonID="imgCalendarTo" TargetControlID="txtToDate"&gt;
                            &lt;/act:CalendarExtender&gt;
                        &lt;/td&gt;
                        &lt;td align="left"&gt;
                            &lt;asp:Label ID="l4" Text="" runat="server" Width="20"&gt;&lt;/asp:Label&gt;
                        &lt;/td&gt;
                        &lt;td align="left"&gt;
                            &lt;asp:Button ID="btnSearchSchedules" runat="server" Text="Search" Width="60px" BorderStyle="None"
                                Height="22px" ForeColor="White" CssClass="btn" /&gt;
                        &lt;/td&gt;
                        &lt;td align="left"&gt;
                            &lt;asp:Label ID="L5" Text="" runat="server" Width="20"&gt;&lt;/asp:Label&gt;
                        &lt;/td&gt;
                        &lt;td valign="middle"&gt;
                            &lt;asp:Button ID="btnUsers" runat="server" Text="Users" Width="60px" BorderStyle="None"
                                Height="22px" ForeColor="White" CssClass="btn" OnClientClick="editUsers();" /&gt;
                        &lt;/td&gt;
                        &lt;td align="left" valign="middle"&gt;
                            &lt;asp:Label ID="L6" Text="" runat="server" Width="20"&gt;&lt;/asp:Label&gt;
                        &lt;/td&gt;
                        &lt;td valign="bottom"&gt;
                            &lt;asp:CheckBox ID="chkBusinessHours" runat="server" Text=" Show Business Hours Only"
                                Height="22px" BorderColor="Transparent" Font-Bold="true" ForeColor="Black" AutoPostBack="true" /&gt;
                        &lt;/td&gt;
                        &lt;td width="40px"&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
                &lt;/table&gt;
                &lt;table id="adminSearchBar" runat="server"&gt;
                &lt;/table&gt;
            &lt;/div&gt;
        &lt;/ContentTemplate&gt;
    &lt;/asp:UpdatePanel&gt;
&lt;/asp:Content&gt;
&lt;asp:Content ID="MainContent" ContentPlaceHolderID="main_content" runat="Server"&gt;
    &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always"&gt;
        &lt;ContentTemplate&gt;
            &lt;div id="dp"&gt;
                &lt;DayPilot:DayPilotScheduler ID="DayPilotScheduler1" runat="server" CellGroupBy="Day"
                    DataStartField="StartDate" DataEndField="EndDate" ScrollLabelsVisible="true"
                    DataTextField="CustomerName" DataValueField="Workcard" DataResourceField="EmployeeCode"
                    CellDuration="60" CellWidth="50" ViewType="Resources" Width="100%" Heigth="100%"
                    RowMinHeight="30" RowHeaderWidth="150" HeigthSpec="Max" HeaderFontSize="10pt"
                    HeaderWidth="150px" HeaderHeight="20" EventFontSize="8pt" EventMoveHandling="CallBack"
                    TimeFormat="Clock12Hours" DurationBarVisible="false" BusinessBeginsHour="8" BusinessEndsHour="18"
                    ClientObjectName="dps" EventClickHandling="JavaScript" EventClickJavaScript="editEvent(e.value());"
                    OnCommand="DayPilotScheduler1_Command" EventCorners="Regular" RowMarginBottom="5"
                    ContextMenuID="DayPilotContextMenu" TreeIndent="15" TreeImageNoChildren="images/tree_nochildren.png"
                    TreeImageCollapse="images/tree_collapse.png" TreeImageExpand="images/tree_expand.png"
                    CssClassPrefix="scheduler_" EventBackColor="" EventFontFamily="" HourNameBackColor=""
                    HourFontFamily="" HourFontSize="" HeaderFontFamily="" HourBorderColor="" BackColor="#ececfe"
                    NonBusinessBackColor="White" CellBorderColor="Silver" OnBeforeResHeaderRender="DayPilotScheduler1_BeforeResHeaderRender"
                    AutoRefreshEnabled="true" AutoRefreshInterval="10" HeightSpec="Max" Height="630"&gt;
                &lt;/DayPilot:DayPilotScheduler&gt;
                &lt;DayPilot:DayPilotMenu ID="DayPilotContextMenu" runat="server" CssClassPrefix="menu_"&gt;
                    &lt;DayPilot:MenuItem Action="Javascript" JavaScript="redirect()" Command="Details"
                        Text="View Job Creator" /&gt;
                &lt;/DayPilot:DayPilotMenu&gt;
                &lt;asp:UpdateProgress DynamicLayout="false" DisplayAfter="1" ID="UpdateProgress2" runat="server"&gt;
                    &lt;ProgressTemplate&gt;
                        &lt;div class="Progress"&gt;
                            &lt;img src="./images/ajax-loader.gif" /&gt;
                            Loading ...
                        &lt;/div&gt;
                    &lt;/ProgressTemplate&gt;
                &lt;/asp:UpdateProgress&gt;
                &lt;act:AlwaysVisibleControlExtender ID="AlwaysVisible" runat="server" TargetControlID="UpdateProgress2"
                    HorizontalSide="Center" VerticalSide="Middle" HorizontalOffset="0"&gt;
                &lt;/act:AlwaysVisibleControlExtender&gt;
            &lt;/div&gt;
        &lt;/ContentTemplate&gt;
    &lt;/asp:UpdatePanel&gt;
&lt;/asp:Content&gt;
</code></pre>
