I can run these samples by going to Samples | ArcGIS API for JavaScript and clicking on "View Live Sample" or "Explore in the sandbox"
but when I download them as zip and then try to run the html file that I have downloaded through my browser by double clicking on it, the kml, georss or csv layer doesnot load up at all. Does any one know the reason behind this? I am talking about these three samples although this issue can be with others as well but I never tried them,
CSV | ArcGIS API for JavaScript
GeoRSS | ArcGIS API for JavaScript
KML | ArcGIS API for JavaScript
Thanks
Solved! Go to Solution.
When you run these in the browser, does the url start with "file://"? You have to run these using "http://". There used to be a document in the JavaScript help about this, but the current page doesn't have this.
Also, the CSV example uses a proxy, so you have to make sure you have that set up on your end. See Using the proxy | Guide | ArcGIS API for JavaScript and Retrieve data from a web server | Guide | ArcGIS API for JavaScript
When you run these in the browser, does the url start with "file://"? You have to run these using "http://". There used to be a document in the JavaScript help about this, but the current page doesn't have this.
Also, the CSV example uses a proxy, so you have to make sure you have that set up on your end. See Using the proxy | Guide | ArcGIS API for JavaScript and Retrieve data from a web server | Guide | ArcGIS API for JavaScript
The info Ken refers to can be found at the top of this doc:
Set up a development environment | API Reference | ArcGIS API for JavaScript