Correcting or preventing display of "Script Error" [closed]

0

In Delphi I call an HTML page that displays some graphics made with jChartFX within a TWebBrowser , are working normally, but clicking any graphic it shows me this Script Error alert:

I'd like to know if code looks like I have to prevent these alerts from appearing or if there is any solution to this error specifically.

The graphics are working properly, but by clicking on a bar or a slice of the donut, for example, it keeps showing this alert and this is quite annoying.

    
asked by anonymous 21.06.2017 / 23:28

2 answers

2

Checks for any occurrence where the object is undefined or another type of object that is not supported by the methods you are trying to use. Make console.logs of the object, use the JSON.stringify if you need to verify this.

Another thing that could be, is to make sure that the object you're clicking on is actually created before you try to use it. Usually it's a fairly common mistake that we sometimes overlook.

    
22.06.2017 / 02:00
0

I managed to resolve. It was case sensitive problem. I looked at the console and it was showing:

  

TypeError: "bI" is not a function

Dai looked at the Leia mais link it shows and there it said it could happen because of case sensitive problem. I did a search on the code and saw that in the line reported the function was actually bi and not bI .

    
22.06.2017 / 14:36