Hi,
I have a bunch of packages stored on some server. These packages are called com.abc.xyz.pkg# (with folder structure like http://server/~company/moduleX/src/com/abc/xyz/pkg#.js), and I want to include them in a script that is hosted on a totally different server. However the following doesn't work:
The error message is that "com" is undefined. The "Page loaded" message is also never displayed.Code:djConfig = { parseOnLoad: true, baseUrl:'./', modulePaths:{'com.abc.xyz':'http://server/~company/moduleX/src/com/abc/xyz'}, isDebug: false, usePlainJson: true }; dojo.require("com.abc.xyz.pkg1"); function onPageLoadHandler() { alert("Page loaded"); }; dojo.addOnLoad(onPageLoadHandler);
Any ideas would be appreciated.


Reply With Quote

Bookmarks