Feb 13, 2018, 7:35 AM
[CLOSED] Proble to launc a resize function from Resource manager
Hello
In the example below, the tesResize function is nether called when I try to resize the browser window.
Uncaught ReferenceError: testResize is not defined
at ext.axd:2
ANd after that, it nether works.
Besides, if I call the function from debuh console, it works.
So how could I use this functionality, to launch a function when the browser is resized?
In the example below, the tesResize function is nether called when I try to resize the browser window.
<%@ Page Language="C#" %>
<%@ Import Namespace="Panel=Ext.Net.Panel" %>
<%@ Import Namespace="Ext.Net.Utilities" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Dynamically add a new Panel to a Parent Items Collection - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
<script type="text/javascript">
var testResize = function () {
alert("resize");
}
</script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" ScriptMode="Debug">
<Listeners>
<WindowResize Fn="testResize"></WindowResize>
</Listeners>
</ext:ResourceManager>
<h1>Resize browser window test</h1>
<ext:Panel
ID="Panel1"
runat="server"
Title="Accordion"
MinHeight="215"
Flex="1"
Html="Resize the window to call the resource manger resize function"
Layout="VBoxLayout">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" Pack="Start"></ext:VBoxLayoutConfig>
</LayoutConfig>
</ext:Panel>
</form>
</body>
</html>
On first launch I get an error :Uncaught ReferenceError: testResize is not defined
at ext.axd:2
ANd after that, it nether works.
Besides, if I call the function from debuh console, it works.
So how could I use this functionality, to launch a function when the browser is resized?
Last edited by fabricio.murta; Feb 19, 2018 at 4:36 PM.