Select to view content in your preferred language

Getting started

2096
14
02-08-2011 05:18 AM
BarryGuidry
Regular Contributor
I am looking at the various options for building custom web applications, for a non-programmer.  The javascript api looks interesting, but I cannot find good information for a beginner.  I looked at the "Getting Started" guide, in the ESRI Resources for web applications, but even it is somewhat advanced (http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm).

Can anyone point me to other resources for absolute beginners in using the Javascript API?
0 Kudos
14 Replies
MatthewLawton
Deactivated User
bg, I would caution against starting with an "out-of-the-box" application from the Server Manager. I believe this creates a .NET or Java based application (depending on your installation), unless something has changed in 10.

You might be better off copying the code from the "ESRI JavaScript" viewer, as described in my step #3 above, or copying code from an ESRI sample in step #4, or I just recently posted a very very simple fullscreen viewer application here in the forums that has minimal code in it. It would be a great foundation for starting to add customizations. There are also several other JavaScript API templates available.

For learning and experimenting, ESRI posts a lot of map services at: http://services.arcgisonline.com/ArcGIS/rest/services

These services are free and do not require an ArcGIS Server license. They are a great asset for those who want to develop JavaScript API applications without the cost of an ArcGIS Server license, which is essentially a totally free development solution (something that Flex and Silverlight cannot boast). Of course you don't get the flexibility of publishing your own MXD map services and data.

Good Luck!
0 Kudos
BarryGuidry
Regular Contributor
Thanks, Matthew.  And, here is a video that shows some basic steps to add own data to a Javascript template:

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/videos/sample_using.htm
0 Kudos
BarryGuidry
Regular Contributor
So, would you basically add a new "FeatureLayer" to the HTML file (such as an ArcGIS Online template) to add a map service with Javascript?

And, if you reference the online Javascript API in the HTML file (i.e.,  <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5">), would you need to install the Javascript API on the web server?
0 Kudos
nicogis
MVP Alum
here you can see ebook (GIS Geeks Guide to Mastering the ArcGIS Server API for JavaScript) http://www.geospatialtraining.com/blog/?page_id=1862
0 Kudos
juasmilla_anera
Deactivated User
Thanks for all the info!! I was totally lost!
0 Kudos