citizens

esri.request not working in IE*

Discussion created by citizens on Sep 14, 2012
Latest reply on Mar 8, 2013 by jvalencia-esristaff
I dropped a copy of the "Add Shapefile" sample, http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/portal/portal_addshapefile.html, on my server, updated the css and proxy links and fired it up and it works fine in Chrome and FF.

Btw, the actual sample running on Esri's box works fine in all browsers.

In IE* when the esri.request fires it fails with error: "Unable to get value of the property 'value': object is null or undefined".

What might be the problem? Is there a work around?

//use the rest generate operation to generate a feature collection from the zipped shapefile 
esri.request({
          url: portalUrl + '/sharing/rest/content/features/generate',
          content: myContent,
          form: dojo.byId('uploadForm'),
          handleAs: 'json',
          load: dojo.hitch(this, function (response) {
            dojo.byId('upload-status').innerHTML = '<b>Loaded: </b>' + response.featureCollection.layers[0].layerDefinition.name;
            addShapefileToMap(response.featureCollection);
          }),
          error: dojo.hitch(this, errorHandler)
        });

Outcomes