AnsweredAssumed Answered

Ajax calls and firefox

Question asked by sihnu on Dec 8, 2015
Latest reply on Dec 10, 2015 by sihnu
Hey,

recently I noticed that Ajax webscripts calls are always returning an empty object when I'm using Firefox. Here is an example structure showing how I call my webscripts:

url = Alfresco.constants.PROXY_URI + "path/to/my/webscripts"
Alfresco.util.Ajax.jsonGet({
  url : url,
  successCallback : {
    fn : function (res) {
      var result = eval('(' + res.serverResponse.responseText + ')');
      // Here I get empty result with Firefox but with Chrome it's ok
    },
    scope : this
  },
  failureCallback : {
    fn : function() {
      // whatever I want to do when error occurs
    },
    scope : this
  }
});


Why are the webscript calls failing with Firefox and working perfectly fine with Chrome?

Outcomes