Select to view content in your preferred language

Locale url

3109
1
07-24-2013 05:03 AM
WilliamKaptein
Deactivated User
//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);


Is it possible to make a local url to a path on my pc? {map} stands for the path the file is in. For example C:/documents

For example (offcourse this doesnt work): template.setContent("Map:<a href="${Map}">");
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

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.

0 Kudos