Sep 20, 2010, 11:11 AM
Internet Explorer exception
Hi,
I have IE7 and get a "'null' is null or not an object" exception when loading the page:
Please help me fix this problem.
thanks,
Francois
I have IE7 and get a "'null' is null or not an object" exception when loading the page:
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!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 runat="server">
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Viewport ID="ViewPort1" runat="server">
<Content>
<ext:Button runat="server" ID="ShowWindowButton" Text="Show">
<Listeners>
<Click Handler="#{MyWindow}.show()" />
</Listeners>
</ext:Button>
</Content>
</ext:Viewport>
<ext:Window ID="MyWindow" runat="server" Width="750" Height="550" Hidden="true"
Modal="true" Constrain="true" Resizable="true" CloseAction="Hide" Maximizable="true"
Minimizable="false" Header="false">
<Content>
<ext:FitLayout ID="FitLayout1" runat="server">
<Items>
<ext:TabPanel ID="ReportTabPanel" runat="server" BodyStyle="background: transparent;">
<Items>
<ext:Panel ID="IBMTab" runat="server" Title="Generate" Icon="ReportStart"
Border="false" Layout="Fit">
<AutoLoad Url="http://www.ibm.com" Mode="IFrame" TriggerEvent="show"
ShowMask="true" />
</ext:Panel>
</Items>
</ext:TabPanel>
</Items>
</ext:FitLayout>
</Content>
<Buttons>
<ext:Button runat="server" ID="btnDetailsCancel" Text="Close">
<Listeners>
<Click Handler="#{MyWindow}.hide();" />
</Listeners>
</ext:Button>
</Buttons>
</ext:Window>
</body>
</html>
The code works fine in Chrome and Firefox. I tried to debug the exception but was unable to trace the root of the problem. It does however seem to be something to do with the container.Please help me fix this problem.
thanks,
Francois