I have issue with load xml using function chartObj.load(...)

I want to load xml file using:
chartObj.load(fileName);

xml file is:


56.46
65.51
44.34
44.43
61.43
10/05

In firefox all works fine but in IE i have error:
Message: Could not complete the operation due to error 80020101.
Line: 8
Char: 173
Code: 0
URI: localhost:8080/smpg/dhtmlx/dhtmlxchart.js

I checked that is related to line: window.execScript?window.execScript(a):window.eval(a) in dhtmlxchart.js library.

When i delete this line all works fine.
Do you have any suggestions about that?? i’m using pro v.2.6.5 version.

Hello,

Does the problem occur in Standart tree samples:
dhtmlxChart/samples/01_initialization/01_load_xml.html
?

could you provide a sample where we could recreate the problem.

Ok sure.

my code:

var chartObj = null;

var chartDiv = document.createElement(‘div’);
chartDiv.setAttribute(‘id’, ‘chartArea’ + tabId);
chartDiv.style.height=(pageHeight()/3)+‘px’;

chartObj = createChart("#0000FF", tabId);
chartObj.load(fileName); - I received error in this line

next I add series

\where:

function createChart(firstColor, tabId)
{
return new dhtmlXChart({
view: “line”,
container: “chartArea” + tabId,
value: “#row1#”,
label: “#row1#”,
width:130,
item: {
borderColor: “#000000”,
color: firstColor
},
line: {
color: firstColor,
width: 3
},
xAxis:{
title:“Days”,
template:"#day#"
},
yAxis:{
title:“Psr”
},
gradient:true,
border:false
})
}

xml file:

8.46 6.51 0 1.43 10/05 9.48 7.17 0 1.43 10/06 9.41 7.16 0 1.43 10/07

chartArea is included on tmpLayout.cells(“b”):

var tmpLayout = dhxTabbar.cells(tabId).attachLayout(“2E”); tmpLayout.cells(“a”).setHeight(pageHeight()/3);
tmpLayout.cells(“b”).hideHeader();
tmpLayout.cells(“b”).attachObject(chartArea);
mygrid = tmpLayout.cells(“a”).attachGrid(‘gridbox’ + tabId);

It would be better to use attachChart method instead of attachObject method to place chart into layout.
I have attached the demo.
chart.zip (100 KB)

Thx,

exactly it’s better way to attach chart but I still have the error:

Message: Could not complete the operation due to error 80020101.
Line: 342
Char: 3
Code: 0
URI: localhost:8080/smpg/dhtmlx/dhtmlxchart.js

Did you reproduce the problem in the sample attached to my previous reply ? Locally we have not managed to recreate the problem in IE.

I had the same error, in my case, after pulling my hair out, I fixed this by loading dhtmlxdataview.js AHEAD of dhtmlxchart.js

The error was related to window.execScript(code);

Hello,

I had the same error, in my case, after pulling my hair out, I fixed this by loading dhtmlxdataview.js AHEAD of dhtmlxchart.js

Are you using the latest Suite version ?

dhtmlxSuite 2012 Rel.1 (DHTMLX 3.5) Professional edition build 120822

When I renewed our license a link was prived to a July 2012 build (?), so I did not follow that link.

pdenhollander
Please, as you have PRO build - create a ticket in support system (you can link to this forum topic) and we’ll try to hepl you.

I have the same issue with newest suite version (3.6) standard in IE 8. In FF/Chrome/Safari all works fine.

I use dhtmlx.js file - not every component separately.

The error is exactly the same.

Hello, klysiak

Does the problem occur in Standart sample below?
dhtmlxChart/samples/01_initialization/01_load_xml.html

Could you provide a sample where we could recreate the problem.
docs.dhtmlx.com/doku.php?id=othe … leted_demo

The sample (same as the one I have in my application) is available here: newfaktury.blesksoft.pl/sample

Please click “Chart” button and you will see, I hope, the results. All happens in IE8 on Windows 7. On IE11 (Win 8.1), Firefox, Chrome or Safari, both on Windows and mac OSX works fine. Funny thing is that on IE8 the toolbar does not have background - its white and it shouldn’t.

At first try to apply the next style for body:

html, body{ height:100%; padding:0px; margin:0px; }

Darya, unfortunately it haven’t resolved the issue. You can check in the sample.

Now it seems like doctype solved your issue?

Unfortunately not here. Only with Popup. The issue with loading chart in IE8 still exists.

Please, chaeck if you have a folder “thirdparty” in the same folder where dhtmlxchart.js file is situated.
But please check your security certificate?

Darya, this is self signed certificate. You can safely continue with browsing.