AnsweredAssumed Answered

First attempt at using a geoprocessing service in a js web app

Question asked by cromsos on Feb 25, 2015
Latest reply on Aug 18, 2015 by gus6177



I'm a novice web developer and have run into a snag and am not sure how to proceed.


Objective:  create a simple web viewer using the javascript API for arc gis server.  Create a button in the application that triggers an asynchronous geoprocessing service and adds the output as a dynamic map layer.


Progress: Using the example code on the ESRI webpages I quickly re-deployed the basic js example of a web app that loads a dynamic map service.  Next, I read the online help related to using a geoprocessing service in a web app and displaying the results here.

ArcGIS Help 10.1 "using"

and here

ArcGIS Help 10.1  "displaying"


Note: the geoprocessing service works when I test it from arcmap etc.


I'm not sure if I should post code directly to this message or not, so instead I'll put a link to the site.  Then view source should reveal the code.

Link to non functional app


Thanks, Chris