Not able to visualize a loaded data

被刻印的时光 ゝ 提交于 2019-12-11 05:47:33

问题


I just start to test xtk, and no problem with the first sample of the cube. I now try to load an external data, but stored locally into my filesystem (just download skull sample of example 05) and put in the same directory of the html. I'm not able to see anything. I've also run the tests and the visualization is ok but when I try to open one of test htmls, it isn't able to visualize the sample. Is there some problem of path? I really try to put myself in the most simple situation but I don't see anything. I use Chrome, and when I check the demos, it is all ok. Any suggestion?


回答1:


This seems to be the origin security check. If you open the Javascript Console, you would prolly see something like '403 error'..

To test locally, you have to start chrome with an argument '-allow-file-access-from-files' or you just run a webserver like 'python -m SimpleHTTPServer' in the directory of your html file and access then in the browser http://localhost:8000/

Here is some more information:

Google Chrome --allow-file-access-from-files disabled for Chrome Beta 8 http://robspangler.com/blog/jquery-load-doesnt-work-in-chrome/



来源:https://stackoverflow.com/questions/10428608/not-able-to-visualize-a-loaded-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!