Put the TWebBrowser component, load the page, the script error appears. If you ignore errors by

 WB2.Silent := true; 

there is no error, but the functionality of the page is broken.

How to fix this problem and save the functionality of the loaded page?

  • one
    There is a suspicion that nothing. Most likely, WebBrowser does not support any objects or methods that the script uses. - kot-da-vinci
  • @ kot-da-vinci is there any other component that can handle this? - Alexander
  • If he is, then I do not know about him. WebBrowser was developed over 10 years ago. And Web standards change at the speed of light. - kot-da-vinci
  • Sadness (Well, @ kot-da-vinci thank you, I will google and try to find a solution) - Aleksandr
  • @ kot-da-vinci, do you happen to be familiar with jsWebbrowser? Can it help out of this situation? - Aleksandr

1 answer 1

I recommend using the DCEF3 TChromium project https://github.com/hgourvest/dcef3 to avoid such problems (the https://github.com/hgourvest/dcef3/tree/2924 branch is currently available).