Data Reviewer API for JavaScript samples overview

These samples demonstrate how to use ArcGIS Data Reviewer API for JavaScript. These samples require access to ArcGIS for Server and ArcGIS Data Reviewer for Server. You should also be familiar with ArcGIS for Server API for JavaScript.

There are two ways to run the JavaScript samples. You can execute a live sample hosted by Esri, or you can run them from your own environment.

Execute live samples hosted by Esri

Esri hosts Data Reviewer API for JavaScript samples. These samples run against an example Reviewer workspace and server. Some samples allow you to submit Reviewer results to a sample workspace and server. All submitted results are periodically removed from the Reviewer workspace.

Click the View live sample link in each sample to access the hosted environment.

Running the JavaScript samples in your own environment

You can also run the JavaScript samples in your own environment. The following steps detail how to configure and execute the JavaScript samples from your server environment.

NoteNote:

ArcGIS Data Reviewer API for JavaScript 3.4 and later requires the use of a proxy page.

Learn more about using a proxy page

Steps:
  1. Copy and paste the sample code into a new HTML (.html) file.
  2. Change the style sheet link href="../style.css" tag to point to your copy of style.css.
  3. Change the load drs api script src tag to point to your copy of the API: <script src="http://<server hostname>/drs.js"></script>.
  4. Change esri.config.defaults.io.proxyUrl to point to your proxy page.
  5. Change all Data Reviewer Server SOE URLs to your REST service: http://<server hostname>:6080/arcgis/rest/services/reviewer/MapServer/exts/DataReviewerServer.
5/7/2015