gesulmino Posted May 24, 2022 Share Posted May 24, 2022 Hello, I'd like to add a custom 'focusenter' client event to TuniPanel with the following Ajax code function focusenter(p1, p2, p3) { ajaxRequest(p1,'focusenter',{}); } If I add the custom event to design time the system works correctly. If I try to add the custom event at runtime the system doesn't work. In the attached document I have detailed the development steps. Can you help me? Thanks in advance Best regards. Details_for_ticket_unigui_panel.pdf 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 24, 2022 Share Posted May 24, 2022 16 minutes ago, gesulmino said: I'd like to add a custom 'focusenter' client event to TuniPanel with the following Ajax code Hello, Which build of UniGUI are you using? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 24, 2022 Share Posted May 24, 2022 Okay. 23 minutes ago, gesulmino said: If I try to add the custom event at runtime the system doesn't work. You can use like this: UniPanel1.JSInterface.JSAddListener('focusenter', 'function(sender, event, eOpts){ajaxRequest(sender, "focusenter", {})}'); Quote Link to comment Share on other sites More sharing options...
gesulmino Posted May 24, 2022 Author Share Posted May 24, 2022 On 5/24/2022 at 11:37 AM, Sherzod said: Okay. You can use like this: UniPanel1.JSInterface.JSAddListener('focusenter', 'function(sender, event, eOpts){ajaxRequest(sender, "focusenter", {})}'); Thanks a lot, it works. 1 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.