Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SharePoint Apps doesn't work in Internet Explorer

$
0
0

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


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>