Select to view content in your preferred language

How to use the Javascript API Locally

2328
7
12-14-2011 05:26 PM
Kin_LunYuen1
New Contributor
Dear All,

I am a newbie in using the ArcGIS Javascript API.

I always see the example in the web have a internet reference for calling the Javascript in ESRI Server.
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5"></script>

Is it possible to put every program code in our own web server & How.
Because the computer in the office cannot assessing the internet in all the time.

Thank you very much

Regards
EricLun
0 Kudos
7 Replies
derekswingley1
Deactivated User
Yes. This is covered in our docs:  Getting the ArcGIS API for JavaScript. You want the info in the "download" section.
0 Kudos
___18
by
New Contributor
�??�?�?��?��??�?�?�讨论讨论�?�?�?�?ARCGIS JS API�?��?��?��??�??�?�??�?不�?�~!
0 Kudos
SiqiLi
by Esri Contributor
Esri Contributor
�??�?�?��?��??�?�?�讨论讨论�?�?�?�?ARCGIS JS API�?��?��?��??�??�?�??�?不�?�~!


For Chinese language, you may want to check the Chinese user forum provided by ESRI China-Beijing. Here is the link:
http://bbs.esrichina-bj.cn/ESRI/forum-51-1.html
0 Kudos
SumitSharma
Occasional Contributor
Hello swingley,

You can download the API from "http://resources.arcgis.com/node/agreement/3237" to your local machine and then refer to the path in the following :

<script type="text/javascript" src=" Path on your machine/jsapi/arcgis/?v=2.6"></script>

Cheers!!

SS
0 Kudos
Marie-GilSeptfonds
Emerging Contributor
Hello,

To use the API locally it needs to install an Apache Server or an ISS server, isn't it ?
0 Kudos
AshishArora
Deactivated User
Guys

anybody able to configure the ArcGIS API for Javascript on IIS 7.5. I followed the install steps but could not able to get this working.

I copied Whole folder to C:\inetpub\wwwroot and after that made some changes in esri.js, dojo.xd.js , dojo.xd.js.uncompressed.js.

Added  Default.ashx  and after that tried to access this library from:
http://<myserver>/arcgis_js_api/library/2.8/arcgis/ but got HTTP Error 404.0 - Not Found

there is no folder named as arcgis. Am i missing something?

the install document says:

"The instructions below assume that you are installing the ArcGIS JavaScript API library in the following location on an IIS Web Server, "http://<myserver>/arcgis_js_api/library/2.8/arcgis/" "

What does that mean? Do i need to create to Webapp named as arcgis?

Please let me know.
0 Kudos
ToddSmith4
Occasional Contributor
Make sure your path is correct - my local path looks like "http://<my server>/arcgis_js_api/library/2.8/jsapi/"
0 Kudos