AnsweredAssumed Answered

While going through the following Url: https://developers.arcgis.com/javascript/jssamples/widget_directions_basic.html   I found that when I view Live Sample, it is working fine. But when I implement the Sample Code on my local machine or Download the zip

Question asked by alokdwivedi on Dec 11, 2015
Latest reply on Dec 14, 2015 by thejus.kambi

While going through the following Url: https://developers.arcgis.com/javascript/jssamples/widget_directions_basic.html


I found that when I view Live Sample, it is working fine.


But when I implement the Sample Code on my local machine or Download the zip file and then implement, it shows unable to route addresses.

Pic2


Also when I add the
routeTaskUrl: "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/NAServer/Route"
still it shows the same error.


Please suggest and help.

Attachments

Outcomes