I have seen this happen when the iWidget uses Dojo to perform a request with handleAs="json". Instead, use handleAs="text", and then use dojo.fromJson(dataStr) to parse the string into a json object.
For example, the following caused a reload issue for me:
var xhrArgs =
{
url:'/MyServlet',
content:{Id:this.userId},
handleAs:"json",
load:dojo.hitch(this,function(jsonObj){
console.log("json",jsonObj);
}),
contentType: "application/x-www-form-urlencoded; charset=utf-8"
};
dojo.xhrGet(xhrArgs);
Changing the handleAs to 'text' with a dojo.fromJson() call solved the problem:
var xhrArgs =
{
url:'/MyServlet',
content:{Id:this.userId},
handleAs:"text",
load:dojo.hitch(this,function(data){
var jsonObj = dojo.fromJson(data);
console.log("json",jsonObj);
}),
contentType: "application/x-www-form-urlencoded; charset=utf-8"
};
dojo.xhrGet(xhrArgs);