mikromundo Posted December 26, 2022 Share Posted December 26, 2022 @Sherzod Could you help me create an ExtJS script for this? I have several objects on the form and I want to identify if the user just clicked inside the shape area of a specific object (blue block) to call an "ajax". Inside the blue block (eg panel1) there will be other containers as well as outside of it as well. In FMX, there is a resource that we can prevent the green blocks from being clicked and yes, only the blue block. I've tried a conventional JS script but to no avail. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 26, 2022 Share Posted December 26, 2022 Hello @mikromundo Can you please explain in more detail? Quote Link to comment Share on other sites More sharing options...
mikromundo Posted December 26, 2022 Author Share Posted December 26, 2022 https://www.w3docs.com/snippets/javascript/how-to-detect-a-click-outside-an-element.html Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 26, 2022 Share Posted December 26, 2022 Seems there was a similar question on the forum, but I can not find it at the moment. In any case, you can add a click listener on the parent element (client-side). And find out the target element in the event parameters. Quote Link to comment Share on other sites More sharing options...
mikromundo Posted December 26, 2022 Author Share Posted December 26, 2022 Ok...I searched and couldn't find it here on the forum and I only ask for your help when I've run out of tries. But I appreciate it as always !!! I will try more !!! 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.