Reputation: 38664
I am testing dojo charting library. I prefer to use the library from AOL web page instead of installing dojo into my computer. I have the following codes:
<script
type="text/javascript"
src="http://o.aolcdn.com/dojo/1.2/dojo/dojo.xd.js">
</script>
<script type="text/javascript">
dojo.require("dojox.gfx");
dojo.require("dojox.gfx.move");
dojo.require("dojo.charting.*");
...
I got an error saying "uncaught exception: Could not load cross-domain resources: dojo.charting.". I guess that my url to dojo library may not have dojo.charting.. Does any one know what is the correct URL? Is there any way to browse AOL site to find out what libraries available?
Upvotes: 0
Views: 305
Reputation: 43956
First of all like Jarret said: dojox.charting.
Second of all: the "wildcard loading" is obsolete since Dojo 0.4. You cannot use dojo.require("some.package.*") anymore. You have to be explicit about what you need.
The best you can do is to hit the charting docs and tests to see how to do it right for your particular needs — you didn't give out any hints of what you are actually trying to do.
Upvotes: 1
Reputation: 97962
have you tried using dojox.charting
? Instead of dojo.charting
- notice the lack of x in 'dojo'?
EDIT: AOL's release notes on dojo do not include mention of charting... I suspect you may be on your own here. This link mentions that AOL's 1.2.x release is the same as their 0.4.2 release, where they list their http://dev.aol.com/dojo API inclusions (charting not included). Host charting elsewhere if you need it, by adding a subsequent <script>
tag, with a different URL for the charting components you need. Or... perhaps AOL is not the appropriate CDN host for you: move your cloud elsewhere :-)
Upvotes: 1