name: "agsjs", //necessary for TOC location:location.pathname.replace(/\/[^/]+$/, "")+'/./build/agsjs'
Could anybody ever get this portion of the agsjs connection code to work? I could only get a full direct path to the 'agsjs' directory to work
templateString: '<div class="agsjsTOCNode"><div data-dojo-attach-point="rowNode" data-dojo-attach-event="onclick:_onClick"><span data-dojo-attach-point="contentNode" class="agsjsTOCContent"><span data-dojo-attach-point="checkContainerNode"></span><img class="tocimage" src="${_blankGif}" alt="" data-dojo-attach-point="iconNode" /><span data-dojo-attach-point="labelNode"></span></span></div><div data-dojo-attach-point="containerNode" style="display: none;"> </div></div>',
adding a class to the image
ACM
.agsjsTOCNode img { /* your style */ }
{ layer: aerials, slider: true, title: "Aerials", collapsed: true }
<img src="http://my server/arcgis_js_api/library/3.5/jsapi/js/dojo/dojo/resources/blank.gif" alt="" data-dojo-attach-point="iconNode" class="dijitTreeExpando dijitTreeExpandoClosed" style="visibility: hidden;">
{
layer: aerials,
slider: true,
title: "Aerials",
isopen: true,
collapsed: true
}
Could anybody ever get this portion of the agsjs connection code to work? I could only get a full direct path to the 'agsjs' directory to work.I ended up having IT place the 'agsjs' files on the server, and put the full path to the directory on the server in the web application, which now works. First, I basically tried the same on my Sharepoint site, which did not work.name: "agsjs", //necessary for TOC location:location.pathname.replace(/\/[^/]+$/, "")+'/./build/agsjs'