tongwenhuan

Error: ?????????????? (null): Unable to complete operation.

Discussion created by tongwenhuan on Dec 26, 2012
Latest reply on Dec 28, 2012 by jay.gregory
Error: ?????????????? (null): Unable to complete operation.
...],g=this.graphics;while(g.length>0){this.remove(g[0]);}if(!_771){this.onGraphics...
[ATTACH=CONFIG]20207[/ATTACH]

my page is code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

  <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title>Simple Map</title>

    <link rel="stylesheet" type="text/css" href="http://127.0.0.1/arcgis_js_api/library/3.2/jsapi/js/dojo/dijit/themes/tundra/tundra.css">

    <script type="text/javascript" src="http://127.0.0.1/arcgis_js_api/library/3.2/jsapi"></script>
    <style>
        html,body{height:100%;width:100%;margin:0;padding: 0;overflow:hidden;}
    </style>

    <script type="text/javascript">

      dojo.require("esri.map");
  dojo.require("esri.layers.FeatureLayer");
      function init() {

        var myMap = new esri.Map("mapDiv");

        //note that if you do not have public Internet access then you will need to point this url to your own locally accessible cached service.

        var myTiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://127.0.0.1/ArcGIS/rest/services/hseds2012/MapServer");

        myMap.addLayer(myTiledMapServiceLayer);
var featureLayer = new esri.layers.FeatureLayer("http://127.0.0.1/ArcGIS/rest/services/sde/FeatureServer/0", {
            outFields: ["*"],
            mode: esri.layers.FeatureLayer.MODE_SNAPSHOT
          });

          myMap.addLayer(featureLayer);

      }

      dojo.addOnLoad(init);

    </script>

  </head>

  <body class="tundra">

    <div id="mapDiv" style="width:900px; height:600px; border:1px solid #000;"></div>

  </body>

</html>


i found when add featureLayer with firefox ,open this errors.

Attachments

Outcomes