AnsweredAssumed Answered

Problems installing JavaScript API locally.

Question asked by ShootMe002 on Jan 4, 2016
Latest reply on Mar 1, 2017 by JordanBaumgardner_GIS

I have installed the JavaScript API locally to use in a developer environment with no internet connection.  The issue I am encountering is when I attempt to view the sample service hosted by ArcServer I am presented with a blank white page.  The sample service is visible when viewed in Desktop & Catalog so I presume the issue is related to my installing of the JavaScript API and setting it for local use.  I believe I followed the windows install notes for JavaScript 3.15 to the letter using the Normal build.

 

  1. I extracted and copied\arcgis_js_api\library to the C:\Inetpub\wwwroot folder.
  2. I opened init.js & dodo.js and replaced both [HOSTNAME_AND_PATH_TO_JSAPI] with mysitehere/arcgis_js_api/library/3.15/3.15/ (did not include http://)
  3. I successfully tested http://mysitehere/arcgis_js_api/library/3.15/3.15/init.js and was prompted with init.js opening. vdmEeXh.jpg

http://i.imgur.com/vdmEeXh.jpg

I am unable to replicate the next step of validating the JSAPI library install using the sample service when accessing it with http://.

 

 

WBF4DVZ.jpg

http://i.imgur.com/WBF4DVZ.jpg

 

 

I continue with the installation document and change the ArcGIS Services Directory “View In JavaScript” URL to the ones in the document

 

7esFjsW.jpg

http://i.imgur.com/7esFjsW.jpg

 

 

Lastly I copied the following code to the  <ArcGIS Server Install Location>ArcGIS\Server\framework\runtime\tomcat\webapps\arcgis#rest\www\client\mapserver\mapserverJSAPI.jsp file

 

<style>
@import "<%=jsapiArcgisCssUrl%>";
@import "<%=cpath%>/static/jsapi.css";
@import "<%=jsapiArcgisUrl%>/js/esri/css/esri.css";
</style>

 

 

This is my first attempt at attempting to setup a developer environment and any help is greatly appreciative in determining what I am doing wrong.  Thank you.

Outcomes