Solved! Go to Solution.
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://localhost
Try 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.