JavaScript API Local Install not working

المشرف العام

Administrator
طاقم الإدارة
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 //mysitehere/arcgis_js_api/library/3.15/3.15/init.js and was prompted with init.js opening.
I am unable to replicate the next step of validating the JSAPI library install using the sample service when accessing it with http://.



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




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

@import "";
@import "/static/jsapi.css";
@import "/js/esri/css/esri.css";


This is my first time attempting to setup a developer environment.



أكثر...
 
أعلى