Oct 07, 2008, 2:09 PM
[CLOSED] AfterRender error in IE when applying template ConfigItem to button
Hey there,
This one is an error for IE only (tested in v7). Works nicely in Firefox (tested in v3).
I am using a button and want to change its presentation. So I added a template ConfigItem to the control which works nicely in Firebox but not in IE. The error being returned in IE is " 'null' is null or not an object".
<%@ Page Language="C#" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" 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">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:scriptmanager id="ScriptManager1" runat="server" />
<ext:button id="startbutton" runat="server" >
<CustomConfig>
<ext:ConfigItem
Name="template"
Value="new Ext.Template('testing
')" />
</CustomConfig>
</ext:button>
</form>
</body>
</html>
However, the button does render correctly to the markup in the template so the implementation does work.Any ideas?
thanks,
Conor