//Stuk code voor invoegen infobox Sleutelbuizen var infoWindowLite = new esri.dijit.InfoWindowLite(null, dojo.create("div", null, map.root)); infoWindowLite.startup(); map.setInfoWindow(infoWindowLite); var template = new esri.InfoTemplate(); template.setTitle("<b>Sleutelbuis</b>"); template.setContent("Map:${Map}"); //voegt de sleutelbuizen toe aan de laag var featureLayer = new esri.layers.FeatureLayer("http://server", { mode: esri.layers.FeatureLayer.MODE_ONDEMAND, infoTemplate:template, outFields: ["Map"] }); map.addLayer(featureLayer); map.infoWindow.resize(200, 200);
William,
The best way to do this is to create a virtual directory for this file folder and then use that virtual directory url instead. Client script file access is a bug security issue.