SharePoint Apps Internet Explorer
Hi all,
we are development SharePoint-hosted app, we have a problem that works in all the browsers except Internet Explorer (sometimes).
The strang is that when you debug with Visual Studio or IE developer toolbar, the app if it works.
I add the sites to the same security zone in Internet Explorer and all it says this article and doesn't work.
http://msdn.microsoft.com/en-us/library/office/jj612823(v=office.15).aspx
This is the code where I do the call:
$(document).ready(function () {
var call = getInfo();
call.always(function (EmployeesInfo) {
if (EmployeesInfo != "ERROR") {
var t = JSON.parse(EmployeesInfo);
$get("EmployeeInfoDiv").innerHTML = fillEmployeeInfo(t);
}
});
});
function getInfo() {
var def = new $.Deferred();
var executor;
var hostweburl;
var remotedomain;
remotedomain = "http://sharepointdev:8090/";
hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
executor = new SP.RequestExecutor(remotedomain);
executor.iFrameSourceUrl = "CustomProxy.aspx?SPHostUrl=" + hostweburl;
executor.executeAsync(
{
url: remotedomain + "SimpleContent.aspx",
method: "GET",
headers: { "Accept": "text/plain" },
success: successHandler,
error: errorHandler
}
);
function successHandler(data) {
var EmployeesInfo = data.body;
def.resolve(EmployeesInfo);
}
function errorHandler(data, errorCode, errorMessage) {
document.getElementById("TextData").innerText ="Could not complete cross-domain call: " + errorMessage;
def.reject("ERROR");
}
return def.promise();
}
Anyone know it is because this issue?
Thanks and regards,
rmves