0 Replies Latest reply on Mar 17, 2010 4:10 AM by YooSShaN

    how to access ArcGIS Server JavaScript API in AIR

    YooSShaN

      Please advise me how to access ArcGIS Server JavaScript API using Script tag. Below appended are the html page which i need to run in air application

       

      <html>
        <head>
          <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
          <meta http-equiv="X-UA-Compatible" content="IE=7" />
          <title>Create Map</title>
          <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/1.6/js/dojo/dijit/themes/tundra/tundra.css">
          <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=1.6"></script>
          <script type="text/javascript">
            dojo.require("esri.map");

       

            function init() {
              var map = new esri.Map("map");
              var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer");
              map.addLayer(tiledMapServiceLayer);
            }

       

            dojo.addOnLoad(init);
          </script>
        </head>
        <body class="tundra">
          <div id="map" style="width:900px; height:600px; border:1px solid #000;"></div>
         
        </body>
      </html>