D3.js: "NS_ERROR_DOM_BAD_URI: Access to restricted URI denied"

Posted by user2102328 on Stack Overflow See other posts from Stack Overflow or by user2102328
Published on 2013-06-27T10:16:24Z Indexed on 2013/06/27 10:21 UTC
Read the original article Hit count: 1828

Filed under:
|

I have an html-file with several d3-graphs directly written in script tags into it. When I outsource one of the graphs into an external js file I get this message "NS_ERROR_DOM_BAD_URI: Access to restricted URI denied". If I delete the code with d3.json where it reads a local json file the error disappears. But it has to be possible to load a json file in an external js which is embedded into an html, right?

d3.json("forcetree.json", function(json) {
root = json;
update();
});

© Stack Overflow or respective owner

Related posts about JSON

Related posts about d3.js