views:

167

answers:

2

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"&gt;
</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?

+1  A: 

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 :-)

Jarret Hardie
As an aside, I used to work for AOL... are you sure you wish to use them in this day and age?
Jarret Hardie
nop. Still not working. I may need to add dojo.js to the URL. How can I add additional library in URL?
David.Chu.ca
I see. Thanks. Edited the answer.
Jarret Hardie
+1  A: 
Eugene Lazutkin
you are right on "wildcard loading". When I specified the package, it works.
David.Chu.ca