Select to view content in your preferred language

Newb to ArcGIS API for Javascript

937
5
07-11-2012 11:52 AM
BarryGuidry
Regular Contributor
So, if one simply references the "Hosted Version" of the ArcGIS API for Javascript, as discussed below (taken from the online Help), does this prevent the need to download and install the API on the web server machine?

Get the ArcGIS API for JavaScript
The JavaScript API is hosted by ESRI on ArcGIS Online and is available for free use, subject to the Terms and Conditions.

Hosted Version
The recommended approach for accessing the API is to use the hosted version by adding the following script tag to your page:

  <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.7"></script>There are several benefits to working with the hosted version of the API.
�?�Delivered via a content delivery network (CDN). CDN's are a collection of geographically distributed web servers that deliver content efficiently.
�?�The servers are load balanced and monitored 24/7
�?�No need to download and re-install the API when new versions are released. You just need to modify the script tag in your application to point to the new version.
0 Kudos
5 Replies
JeffPace
MVP Alum
So, if one simply references the "Hosted Version" of the ArcGIS API for Javascript, as discussed below (taken from the online Help), does this prevent the need to download and install the API on the web server machine?


Welcome!

You absolutely do not need to download if you use the hosted api!
0 Kudos
BarryGuidry
Regular Contributor
Welcome!

You absolutely do not need to download if you use the hosted api!

Great! Thanks, Jeff. So, it would then be possible to write the HTML document on a desktop, copy it over to the web server machine's ArcGIS Server root (I believe if I remember correctly) and access it from any machine with network access, right?
0 Kudos
JeffPace
MVP Alum
yes absolutely
0 Kudos
BarryGuidry
Regular Contributor
yes absolutely
Great! It seems like this is the API that I shall use then, as the deployment will be the easiest. Thanks again!
0 Kudos
BarryGuidry
Regular Contributor
OK, I've compiled code from several Javascript API Code Samples, and added my data to create a web application to test. So far, I have developed and tested it on my personal computer. So, I want to load the html file on the web server (IIS) machine for network access. Does the html file need to be loaded into a specific directory on the web server machine? Does any web server access need to be configured for the html file to be served over an intranet?
0 Kudos