Select to view content in your preferred language

[HELP ME PLEASE] Can't run example from desktop !!!!

614
4
07-30-2013 05:04 AM
PhuongNguyen_Thanh
Emerging Contributor
Hi everybody ! First word I wish you have a good and happy working day !!!!! ^^

I have a problem that I'm so stressful. I downloaded a file from this site :
http://developers.arcgis.com/en/javascript/sandbox/sandbox.html?sample=map_webmap

and I can't run it from my PC. It displays a white page, nothing appears. I just only run it on that example's website

So can anyone can help me to solve this problem ? Many thanks 🙂

p/s: Internet is ok
0 Kudos
4 Replies
BenFousek
Deactivated User
You must run an application on a web server. This won't work: file:///C:/index.html. Must be HTTP protocol.

There are several development software packages out there like XAMPP http://www.apachefriends.org/en/xampp.html.
0 Kudos
PhuongNguyen_Thanh
Emerging Contributor
Thank you for your solution. I already installed XAMPP but I can't config how to run my downloaded file. Could you guide me how to config the XAMPP to run my downloaded file ?

Many thanks 🙂
0 Kudos
BenFousek
Deactivated User
Assuming you installed xampp at C:\xampp. There should be a folder C:\xampp\htdocs. Create a new folder in htdocs called 'MyApp' and copy the files there. Then in your browser go to: http://localhost/MyApp/index.html.

Also you must start Apache in XAMPP Control Panel (xampp-control.exe).
0 Kudos
PhuongNguyen_Thanh
Emerging Contributor
Assuming you installed xampp at C:\xampp. There should be a folder C:\xampp\htdocs. Create a new folder in htdocs called 'MyApp' and copy the files there. Then in your browser go to: http://localhost/MyApp/index.html.

Also you must start Apache in XAMPP Control Panel (xampp-control.exe).


You are my savior 🙂 thank you so much ^^
0 Kudos