Working with your JavaScript of web application

809
9
02-09-2011 11:20 AM
CarlaYarrow
New Contributor II
Hi, please bare with me as I am new to JavaScript API.

I would like to know how one goes about navigating to the JavaScript for their web application deployed on ArcServer? Where can one find the file to add or modify the existing JavaScript (e.g. to create a custom geoprocessing task or add a company logo to the header)?

If anyone has a response, rather than simply viewing this post, please pass your knowledge along.


Thank you very much 🙂
0 Kudos
9 Replies
JaclynGorman
New Contributor
Do you already have a functioning website with a map application or are you starting from scratch and just have map services published on your server?
0 Kudos
CarlaYarrow
New Contributor II
Currently, I have a deployed web application from ArcGIS Server that uses it's own url (e.g. "http://(servername):8399/arcgis/(foldername)/(applicationname)/MapServer"). I would like to edit the application by creating new geoprocessing tasks not available in the regular Geoprocessing tools and change some formatting.

I would like to do this over creating an application from scratch and just using the url obtained from the services directory. I can do this now, but I can see it will take much longer!

I really appreciate your help. Thank you!
0 Kudos
MarioObendorfer
New Contributor
Hi,

as far as I know geoprocessing tasks are not handled in JavaScript ... you build a task or lets call it query with JS and pass the query to the AGS (thats the JS part). The server is handling the request and sends you a callback.

I may be wrong here but if you need custom geoprocessing that the server can't handle you might have to implement an AGS extention with your own business logic.

Greets Tol
0 Kudos
CarlaYarrow
New Contributor II
Yes, so where do you add the task? I would not like to start from the ground up building a new web application when I already have one on my server that is somewhat to my liking, but I simply want to change some things to personalize it.

Thank you for the help!
0 Kudos
KevinBoone
New Contributor
The example at the link below shows how to add a geoprocessing task to your JavaScript. 

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/gp_viewshed.ht...
0 Kudos
CarlaYarrow
New Contributor II
Thanks, I am aware of the geoprocessing tools, Kevin.
0 Kudos
JaclynGorman
New Contributor
If you created the map in arcgis server manager look in C:\Inetpub\wwwroot\ArcGIS .  You can find Tasks.xml in <Virtual root directory>\<ArcGIS Server instance name>\Manager\Applications\App_Data (Example: C:\Inetpub\wwwroot\ArcGIS\Manager\Applications\App_Data\Tasks.xml).
0 Kudos
CarlaYarrow
New Contributor II
Thank you very much.
0 Kudos
JaclynGorman
New Contributor
I'm not super familiar with working with the Web ADF. I wasn't sure if your server was setup on  .Net or Java, but here are link that should help you.  Sorry I can't provide more information.

http://help.arcgis.com/en/sdk/10.0/serveradf_net/conceptualhelp/index.html#/ArcGIS_Select_Buffer_Too...

http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_java_help/index.html#/NET_Web_ADF/009...

You might want to post in http://forums.arcgis.com/forums/10-ArcGIS-Server-Java or http://forums.arcgis.com/forums/9-ArcGIS-Server-.NET depending on how your server is setup.
0 Kudos