开发者

load() a html with dojo content

开发者 https://www.devze.com 2023-02-21 16:35 出处:网络
i have a simple dojo chart that work\'s well in a separate fi开发者_开发百科le. now the problem,

i have a simple dojo chart that work's well in a separate fi开发者_开发百科le.

now the problem,

if i import the file with $('#result').load('dojo.html'); nothing happens, the page not loads the graph. If i do a require in a php file, it works...the chart is loaded.

so, the question is: how is the reason that cause the problem when i make a import with the method load();

It is supposed to work? (draw the chart)

thanks


The Dojo script must be in the file where the load is made.

<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js" djConfig="parseOnLoad: true"> </script>
0

精彩评论

暂无评论...
验证码 换一张
取 消