This is something that I believe needs better documentation - I just tried to find a link to send to you, but I can't see where it's documented.You need to host the sample within a web server before it'll work - the Esri API won't work if you're trying to view an HTML file which is stored in a normal directory/folder.If you have access to a web server you can FTP the file onto it and run it there. If you don't have access to a web server, you can set up a local web server on your computer and access it via http://localhostTry searching for "how to set up a local web server" in Google for instructions on how to do this (it varies between Mac and PC).Good luck,Steve
Thank you so much Steve! I set it up using IIS7 and voila, it is working! You are my hero! Thank you!!!No Jeff, it does not work when I run from Aptana. I agree with Steve that this needs more documentation.
http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#intro_devenvfirst line on the page, "When developing with the ArcGIS API for JavaScript, a web server is required."Easy to overlook? Yes. But it's documented. You'll encounter situations like this often.cheers.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.