submitJob Callback not firing in IE

769
1
03-05-2014 12:46 PM
StevenHaslemore
Occasional Contributor
Hi Folks,

The following code is working just fine in Chrome and FF but the callback does not fire for IE 9 or IE 11.
I'm feeling stumped, both callback approaches work for Chrome/ FF

Am I missing something obvious??

Thanks!

jsapi: 3.8
jquery: 1.9.1


var gpTask = new esri.tasks.Geoprocessor('https://balh.com/arcgis/rest/services/gpService/shpToFl/GPServer/shpToFl');
var inParams = {};
inParams.shapeZip = '{"itemID":"' + result.item.itemID + '"}'
console.log('submitting job');
//this.gpTask.submitJob(inParams, lang.hitch(this, this.gpTaskComplete), '', lang.hitch(this, this.gpError));

gpTask.submitJob(inParams, 
    function(result){
        console.log('result!!!!')
    }, 
    function(message){
        // this is the only part IE will call
        console.log('messages')
    }, 
    function(error){
        console.log('error')
    });
    
gpTask.on('job-complete', function(result){
    console.log('this work??')
});

0 Kudos
1 Reply
StevenHaslemore
Occasional Contributor
And the answer was rather obscure and "should probably be included by default" according to tech support but IE caching responses was to blame....

http://forums.arcgis.com/threads/88625-IE-caching-responses-to-GP.submitJob-callbacks?highlight=subm...


-steven
0 Kudos