0
In the Delphi i call an HTML page that displays some graphics made with jChartFX
within a TWebBrowser
, are working normally, but when clicking on any chart it shows me this alert Script Error:
I would like to know if via code there is any way I can prevent these alerts from appearing or if there is any solution to this error specifically.
The graphics are working correctly, but when you click on a bar or a slice of the donut, for example, it keeps showing this alert and it’s really boring.
Brow put a
try
/catch
around the function that calls the graph. But you probably need to fix the code because it’s asynchronous to the function that calls the chart once it waits for the click.– Sergio
This is a browser configuration (internet explorer), and I’ve known for a few years that it’s been turned off by default. It must be enabled in your machine because it is a development environment. Anyway, I agree with @Sergio, the way is to avoid the mistake, not try to hide the message.
– bfavaretto