AnsweredAssumed Answered

Access Is Denied

Question asked by koder303 on Oct 1, 2014
Latest reply on Oct 7, 2014 by koder303

Hello,

 

I am trying to execute a query from a custom widget that I wrote.

 

Code:

 

var qt = new QueryTask('http://[url]/MapServer/0');
var q = new Query();
q.spatialRelationship = esri.tasks.Query.SPATIAL_REL_INTERSECTS;
q.outSpatialReference = { wkid: 102100 };
q.returnGeometry = true;
q.outFields = ["*"];
q.geometry = this.geometry; // I know this is a polygon

qt.execute(q, function(resultList) { /* do stuff here */ }, function(err){ /* catch error */});

 

If I run this code from a widget using IE 9, I get an Access Is Denied error in /* catch error */. If I run this code from outside the widget in IE9 it seems to work fine. If I run this code from IE 11 or Firefox, it works regardless of whether or not it is in a dijit widget.

 

My proxies are in place and everything seems to be ok on that side.

 

Has anyone experienced this behavior before? Any tips are appreciated.

 

Thanks.

Outcomes