here is a screen shot of my folders[ATTACH=CONFIG]23295[/ATTACH]The application HTML file is located in the C:\inetpub\wwwroot\ The "agsjs" folder, for Table of Contents, was copied into C:\inetpub\wwwroot\<script type="text/javascript">
var djConfig = {
parseOnLoad: true,
packages: [{
"name": "agsjs",
"location": location.pathname.replace(/\/[^/]+$/, "") + '/agsjs/build/agsjs'
//"location": 'http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.02/xbuild/agsjs' // for xdomain load
}]
};
</script>
dojo.connect(map, 'onLayersAddResult', function (results) {
var toc = new agsjs.dijit.TOC({
map: map,
layerInfos: [{
layer: dynmap1,
title: "Signs",
slider: true
}]
}, 'tocDiv');
toc.startup();
var legend = new esri.dijit.Legend({
map: map,
layerInfos: [{ layer: dynmap1, title: "" }]
}, "legendDiv");
legend.startup();