Select to view content in your preferred language

Javascript 4.4 api on webSever IIS

2127
15
Jump to solution
08-17-2017 01:52 AM
Henryobaseki
Occasional Contributor

I have followed the steps on how to install and test your API  on windows see instructions below

Install the Build

  1. Open C:\Inetpub\wwwroot\arcgis_js_api\library\4.4\dojo\dojo.js in a text editor and search for the text [HOSTNAME_AND_PATH_TO_JSAPI], and replace this text with https://www.example.com/arcgis_js_api/library/4.4/.

Test the Install

Now you should be able to access the ArcGIS JavaScript library from your web server using the following URL:

<script src="https://www.example.com/arcgis_js_api/library/4.4/dojo/dojo.js"></script>

Test your install. You can use the following test code to validate your JSAPI library install.

-----------------------------------------------------------------------------

This is my local drive where I have installed it;
C:\inetpub\wwwroot\arcgis_js_v44_api . Also made the necessary changes to dojo.js as advised.
The next stage was to use a test.html to see if it works.
Where I ‘m a bit confused now  how do I point the URL to my test.html to be able to view in internet explorer.
I have open the test.html using C:\inetpub\wwwroot\arcgis_js_v44_api\test.html, and isn’t right.
Tags (1)
0 Kudos
15 Replies
RobertScheitlin__GISP
MVP Emeritus

Henry,

   What are the errors presented in the developer tools web console when in IE?

0 Kudos
Henryobaseki
Occasional Contributor

Hi Robert,

it does not show any error, it just comes up with a blank mapview window when opened with IE

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Henry,


  Is IE running in compatiblity mode?

0 Kudos
Henryobaseki
Occasional Contributor

I would think so, How  do I find that out?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Henry,

   You do Not want compatibility mode:

  1. Open IE's settings; this is usually a gear icon on the top right
  2. Select 'Compatibility view settings'
  3. Deselect 'Display intranet sites in Compatibility View'

Another way to ensure that your app does not run in compatibility mode is to use a meta tag:

<html>
   <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
0 Kudos
Henryobaseki
Occasional Contributor

Thanks Robert Scheitlin you have answered my question. Please take a look at my question

use popup template in searchwidget geocoder  the code is a geocoding service, you click anywhere in a map it displays addresses + xy coordinates, what I want to get to is to get the xy coordinates to be displayed as a table just like my other code you helpled with.

Thank you!

0 Kudos