Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

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

Post Reply
john.augustine
Posts: 48
Joined: Fri Jul 10, 2020 1:33 pm

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

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

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

Post 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.
john.augustine
Posts: 48
Joined: Fri Jul 10, 2020 1:33 pm

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

Post by john.augustine »

Ok,Sure. I will try this...

Thank you.
John
Post Reply