Jun 18, 2017, 2:50 AM
[CLOSED] JS Error if KeyMap target doesnt exist
Found In: 4.2.1
This is pretty straight forward. Just load the page and it crashes. Granted, the target should exist, but it shouldnt crash if it doesnt.
it should just ignore targets that dont exist.
thanks,
/Z
This is pretty straight forward. Just load the page and it crashes. Granted, the target should exist, but it shouldnt crash if it doesnt.
it should just ignore targets that dont exist.
thanks,
/Z
<%@ 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 lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Search </title>
</head>
<body>
<form id="Testsetset" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Viewport ID="Viewport1" runat="server" Layout="FitLayout">
<Items>
<ext:TextField runat="server" Text="hello" FieldLabel="test" />
</Items>
</ext:Viewport>
<ext:KeyMap ID="KeyMap1" runat="server" Target="FormPanelTest1" >
<Binding>
<ext:KeyBinding Handler="alert('test');">
<Keys>
<ext:Key Code="ENTER"/>
</Keys>
</ext:KeyBinding>
</Binding>
</ext:KeyMap>
</form>
</body>
</html>
Last edited by fabricio.murta; Aug 18, 2017 at 10:13 PM.
Reason: no feedback from the user in 7+ days