Mar 25, 2015, 12:21 PM
[CLOSED] TextField DirectEvents Keypress question
I recently updated a VS 2005 project to 2013 with Ext v3 and am having an issue with a TextField DirectEvent KeyPress event.
The old code is:
The old code is:
<ext:TextField ID="SearchStringField" runat="server" EnableKeyEvents="true">
<DirectEvents>
<KeyPress Before="var e = params[1]; var isEnter = e.getKey() == e.ENTER; if(isEnter){e.preventDefault();} return isEnter;"
OnEvent="SearchString">
<EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{gpFindStudent}" />
</KeyPress>
</DirectEvents>
</ext:TextField>
Now I get the error: 0x800a1391 - JavaScript runtime error: 'params' is undefined and the focus leaves the box after each keystroke.
Last edited by Daniil; Mar 31, 2015 at 3:57 PM.
Reason: [CLOSED]