AnsweredAssumed Answered

Javascript error: function not defined????

Question asked by GibbyAR on Aug 26, 2013
Latest reply on Aug 27, 2013 by GibbyAR
however it IS defined....here:

require(["dojo/dom",
        "dojo/_base/array",
        "dojo/_base/Color",
        "dojo/parser",
       
...

],

function(dom, array, Color, parser, Map, esriLang, Graphic, FeatureLayer, InfoTemplate, GraphicsLayer, SimpleRenderer, Point, FeatureSet,
             ClosestFacilityTask, ClosestFacilityParameters, SimpleMarkerSymbol, SimpleLineSymbol){   
   
      var map, incidentsGraphicsLayer, routeGraphicLayer, closestFacilityTask, params, facilitiesFeatureLayer, handler;
  

    function myFunction() {
      alert("Do Something");
    }

});

<body class="claro">  
...


<div> <button onClick="myFunction()">Pick Point</button></div>
</body>
</html>

Outcomes