2011-2-5
ESRI javascript API
There are two ways to reference ESRI JavaScript APIs
1. Online Reference
<SCRIPT type = "text/JavaScript" src = "http://serverapi.arcgisonline.com/jsapi/arcgis? V = 1.5 "> </SCRIPT>
<LINK rel = "stylesheet" type = "text/CSS" href = "http://serverapi.arcgisonline.com/jsapi/arcgis/1.5/js/dojo/dijit/themes/tundra/tundra.css">
2 offline reference
Download the ArcGIS Javascript. API offline package and deploy it as instructed.
ArcGIS API for JavaScript 2.0 offline package library URL:
Http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp/arcgis_js_v20_api.zip
ArcGIS API for JavaScript 2.1 offline package library URL:
Http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp/arcgis_js_v21_api.zip
Modify rest configurations
Use NotePad to open the c: \ Inetpub \ wwwroot \ ArcGIS \ rest. config file
Change the content of the <ArcGIS> node under the <jsapi> node to the jsurl of the local server, for example, http: // localhost/arcgis_js_api/library/2.0/ArcGIS,
Modify the <arcgiscss> label to the CSS corresponding to the local server.
Http: // localhost/arcgis_js_api/library/2.0/ArcGIS/JS/dojo/dijit/themes/Tundra/tundra.css