I have downloaded pivot demo today, everything is working fine, except loading data from URL, can anyone check why this is happening ?
Are you using URL from the same domain of from a different one?
By default browser blocks data loading from different domain, and this security check can’t be disabled. So you need to have data and component on the same domain or resort to cross-domain loading techniques.
I have dowloaded demo, unzipped on hard drive and started index.html without web server. Option 01 Init : Loading from URL does not load anything. If I look the code “02_loading_data.html”:
webix.ready(function(){
grida = webix.ui({
container:"testA",
id:"pivot",
view:"pivot",
height:400,
width:1000,
url:"../common/data.json",
max: true,
structure: {
rows: ["form", "name"],
columns: ["year"],
values: [{ name:"gdp", operation:"sum"}, { name:"oil", operation:"sum"}],
filters:[]
}
});
});
data.json is there …/common/ but it is not loaded in the grid. So my question is, when I download your pivot demo, unzip this on hard drive, start index.html, go to option 01 Init and click Loading from URL nothing happens. Is there anytning special I need to do to make this work ? Other optionas are working (that are loading from …/common/testdata.js)
and started index.html without web server
Same limitation as with cross domain requests. When starting without web-server browser allows to load data from the same folder only, access to “…/common/” is blocked as cross domain request.
Just use any kind of web-server
This limitation is not specific to Pivot, it is common behavior of AJAX data loading.