开发者

load() a html with dojo content

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜