RoSi
Posts: 7
Joined: Thu Jun 03, 2021 6:12 am

script error in stock-tools.js (v9.1.0) in IE

Hello,

I use Highcharts Stock in IE, but after update IE notify en script error (without code).
Robert
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: script error in stock-tools.js (v9.1.0) in IE

Hello RoSi!

Welcome to our forum and thanks for contacting us with your question!

It is hard to tell you what is not working and what could be done without taking look at your code. Could you reproduce the issue in an online editor that I could work on? You can find a basic template in the link below. :)

Demo: https://jsfiddle.net/BlackLabel/0pbeym97/

Best regards!
Dominik Chudy
Highcharts Developer
RoSi
Posts: 7
Joined: Thu Jun 03, 2021 6:12 am

Re: script error in stock-tools.js (v9.1.0) in IE

Hello,

I use your Stock chart in local SCADA application. After your update I don't see the Navigation panel (see attachments). SCADA is using Internet Explorer object (included in Windows) for visualisation local web panels.
I can make my PC available thru the TeamViewier.

Best regards!
Robert
Attachments
result.png
result.png (116.62 KiB) Viewed 1849 times
error.png
error.png (61.76 KiB) Viewed 1849 times
RoSi
Posts: 7
Joined: Thu Jun 03, 2021 6:12 am

Re: script error in stock-tools.js (v9.1.0) in IE

Hello Dominik.c,

after your library update (3.6.2021) the result is still the same.
Robert
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: script error in stock-tools.js (v9.1.0) in IE

Hi again!

It looks like a bug in stock tools in IE11. You can create an issue on our GitHub and report this bug.
Here is a link: https://github.com/highcharts/highchart ... new/choose

Best regards!
Dominik Chudy
Highcharts Developer
RoSi
Posts: 7
Joined: Thu Jun 03, 2021 6:12 am

Re: script error in stock-tools.js (v9.1.0) in IE

Hi again,

after tests with local saved file stock-tools.js I have this specific error notification (see attachement).

Robert
Attachments
error_indexOff.png
error_indexOff.png (65.09 KiB) Viewed 1826 times
RoSi
Posts: 7
Joined: Thu Jun 03, 2021 6:12 am

Re: script error in stock-tools.js (v9.1.0) in IE

Hi again,

can you fix this error?
The situation is still the same.
Robert
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: script error in stock-tools.js (v9.1.0) in IE

Hi again!

As far as I see the error occurred because you have been referring to an undefined variable. It's hard for me to fix it without taking a look at your code. As earlier I'm asking you to reproduce this issue in an online editor that I could work on. Without it, it's really hard to help you. :(

Template demo: https://jsfiddle.net/BlackLabel/ewq7ropt/

Best regards!
Dominik Chudy
Highcharts Developer
RoSi
Posts: 7
Joined: Thu Jun 03, 2021 6:12 am

Re: script error in stock-tools.js (v9.1.0) in IE

Hi,

as you can see in previous post I had an error in stock-tools.js file on line 164 (Unable to get property d.indexOf("highcharts-disabled-btn") )
In webbrowser is awrything OK. I can not make an template in JSFiddle besause I use your code in SCADA and for local visualisation is used the IE browser.
Previously (your stock tools menu without disable button) was ewerything OK.

Robert
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: script error in stock-tools.js (v9.1.0) in IE

Hi again!

Could you tell me exactly how did you build your project? Step by step, so I could try to reproduce it locally on my computer. Probably it's the only option we have left.

Best regards!
Dominik Chudy
Highcharts Developer
RoSi
Posts: 7
Joined: Thu Jun 03, 2021 6:12 am

Re: script error in stock-tools.js (v9.1.0) in IE

Hi,

I inserted the whole script in the form of a string into the method of the PmaWebDir object.
Please, download our SCADA system PROMOTIC from this page: https://www.promotic.eu/en/promotic/download/Pm0900.htm
In attachement you can finde an example project.

Robert
Attachments
HighChartsForum.zip
(25.25 KiB) Downloaded 23 times
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: script error in stock-tools.js (v9.1.0) in IE

Hi again!

It seems that this issue also appears in other demos with stock-tools. Unfortunately, this is a bug and there's no other way than wait for its fix or downgrade to some other version of Highcharts.

Here's the link to the issue on our GitHub so you can track it: https://github.com/highcharts/highcharts/issues/16087

Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Stock”