Page 1 of 1

How to handle button's (actions) which are part of my HTML data

Posted: Mon Aug 31, 2020 4:58 pm
by john.augustine
Hi,

In CEF4 Browser > How to handle button's (actions) which are part of my HTML data (basically this HTML is from third party).

Button's: "Ok" and "Cancel". I need to save the data based on the button action (OK > Save, Cancel > Do not save)

Please refer the attached browser screen with buttons (buttons which are from HTML)

Could you please help me on this?

I am using CEFWindowParent and TChromium

My system configuration:
Windows 10 Enterprise (64-bit)
Delphi Version: Delphi 10 Seattle

Thanks & Regards,
John Augustine

Re: How to handle button's (actions) which are part of my HTML data

Posted: Mon Aug 31, 2020 8:19 pm
by salvadordf
I've never done that but I read that some people overrides the onclick event that is triggered by those buttons.

I'm not a JavaScript expert and perhaps there are better ways to do that.

Re: How to handle button's (actions) which are part of my HTML data

Posted: Tue Sep 01, 2020 5:04 am
by john.augustine
Ok,Sure. I will try this...

Thank you.
John