GerhardV Posted February 16, 2017 Share Posted February 16, 2017 I have a TuniEdit on a form for search functionality. I do not want to trap the OnKeyPress event on the server side because of all the traffic hence I have added the event below: ClientEvents | ExtEvents | Ext.form.field.text function keypress(sender, e, eOpts) { if (e.getKey() == 13 ) { sender.showMask('Searching...'); ajaxRequest(sender, 'doSearch', [editboxText?]); } } I am not sure how to obtain the text from the TuniEdit to send through as a parameter? Does anybody know? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 16, 2017 Share Posted February 16, 2017 Hi, ... if (e.getKey() == 13 ) { sender.showMask('Searching...'); ajaxRequest(sender, 'doSearch', ["editboxText="+sender.getValue()]); } ... procedure TMainForm.UniEdit1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = 'doSearch' then begin ShowMessage(Params.Values['editboxText']); end; end; Best regards. 2 Quote Link to comment Share on other sites More sharing options...
GerhardV Posted February 16, 2017 Author Share Posted February 16, 2017 Thanks again. I have tried sender.getText, sender.text and all other stuff except for getValue I found this in the meantime for anybody else interested... http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.form.field.Text 1 Quote Link to comment Share on other sites More sharing options...
Luis German Posted June 22, 2020 Share Posted June 22, 2020 Hello, Can someone explain why the delay between keyevent and see the message? Thanks Luis. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 23, 2020 Share Posted June 23, 2020 5 hours ago, Luis German said: Can someone explain why the delay between keyevent and see the message? Hello, Sorry, can you please explain in more detail? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.