Hi Jon,Thanks for your reply. I'm not sure which code snippets would be valuable considering the error occurs in the API itself and not in my code. Here are the scripts in the <head> section of my page:<script>
var dojoConfig = {
parseOnLoad : true,
packages : [{
name : "pgonline",
location : location.href.replace(/\/[^/]+(\.html.*)|\?.*/, "").replace(/\/[^/]+\/?$/,"") + "/PGOnline"
}]
};
</script>
<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/"></script>
<script type="text/javascript">
require([
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane"
]);
var main;
require(["pgonline/Main"], function(Main) {
var settings = {
webmapID : "4b658923d0924336a08bfbbd4c72121f",
titleDiv : "title",
mapDiv : "map",
menu : "menu",
overviewDiv : "overviewDiv",
geocoderDiv : "search",
mainWindow : "mainWindow",
tableParent : "centerPane",
headerDiv : "header",
withBasemap : true,
withMeasure : true,
withDrawing : true,
withLegend : true,
withQuery : true,
withNavToolbar : true,
withPrinter : true,
withPlotter : true,
withFinder : false,
withEditor : false,
withToggles : true,
withTable : true,
withSummary : true,
withPriorization : true,
withSymbology : true,
withExport : true,
withPlannerToolbar : true
};
main = new Main(settings)
});
</script>
Through further investigation I did determine that the error occurs after the dojoConfig object has been created and the API has been loaded. It appears to occur upon the call tomain = new Main(settings)
but the constructor of Main never gets called.Main.js is the module I created to do all the main Javascript processing like loading the web map from AGOL, initializing all my custom widgets and Esri widgets, etc.