I was successfully using dojo.dnd.Source with Dojo 1.4.3 loaded from my webserver. However, as it is shared hosting or for some other reason the loading was horrifyingly slow. (even something like 1min30 secs occasionally)
So I am now trying to switch to DOJO 1.5 and googleapis as source. Result is much better loading times but my problem now is that dojo.dnd is not recognized. here is the code I use for loading dojo.dnd.Source
Expand|Select|Wrap|Line Numbers
- <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js" type="text/javascript" djConfig="parseOnLoad: true, isDebug: true"></script>
- <script language="JavaScript">
- dojo.addOnLoad(function() {
- dojo.require("dijit.Dialog");
- dojo.require("dojo.parser");
- dojo.require("dijit.Editor");
- dojo.require("dojo.dnd.Source");
- widgetSrcNode = new dojo.dnd.Source("admin_widgetSrcNode", {accept:["unknown"]});
dojo.dnd is undefined
http://mydomain.com/admin/somepage.php?wp=17
Line 171
-- end of message
Line 171: widgetSrcNode = new dojo.dnd.Source("admin_widgetSrcNode", {accept:["unknown"]});
I can't see any changes in the documentation for dojo.dnd in 1.5 vs 1.4 and I have tried several djconfig options but no luck. What else can I try?