May 21, 2013, 1:09 PM
[CLOSED] DocumentReady Fn delegate isn't called
Hi,
Please advise what's missing in my setup. The DocumentReady Fn delegate doesn't get called. The handler, however, is perfectly fine. Also, if you could tell me the signature of the Fn delegate or provide the documentation link, that would be great.
Please advise what's missing in my setup. The DocumentReady Fn delegate doesn't get called. The handler, however, is perfectly fine. Also, if you could tell me the signature of the Fn delegate or provide the documentation link, that would be great.
<%@ Page Language="C#" %>
<%@ Register TagPrefix="ext" Namespace="Ext.Net" Assembly="Ext.Net" %>
<!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>
<ext:ResourcePlaceHolder ID="ResourcePlaceHolder1" runat="server" Mode="Script" />
<ext:ResourcePlaceHolder ID="ResourcePlaceHolder2" runat="server" Mode="Style" />
<script type="text/javascript">
var onDocumentReady = function () {
alert(1);
};
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server">
<Listeners>
<DocumentReady Fn="onDocumentReady" />
</Listeners>
</ext:ResourceManager>
<ext:Viewport runat="server">
<Items>
<ext:Button runat="server" Text="Test">
</ext:Button>
</Items>
</ext:Viewport>
</form>
</body>
</html>
Last edited by Daniil; May 21, 2013 at 3:12 PM.
Reason: [CLOSED]