FSN#37985 Phonebook API werkte niet op IE11 sinds 'nosniff'

svn path=/Website/branches/v2016.2/; revision=31012
This commit is contained in:
Jos Groot Lipman
2016-10-09 15:34:51 +00:00
parent e9a7dbca9a
commit b5783f7665
4 changed files with 10 additions and 0 deletions

View File

@@ -53,7 +53,10 @@ var JSON_Result = true;
} }
if (callback) if (callback)
{
Response.ContentType = "application/javascript";
Response.Write(callback + "(" + JSON.stringify(result) + ")"); Response.Write(callback + "(" + JSON.stringify(result) + ")");
}
else else
Response.Write(JSON.stringify(result)); Response.Write(JSON.stringify(result));
%> %>

View File

@@ -31,6 +31,7 @@ var EXPIRED_PASSWORD_OK = true; // performance
var sitenoroot = proto + "://" + Request.ServerVariables("SERVER_NAME"); var sitenoroot = proto + "://" + Request.ServerVariables("SERVER_NAME");
var site = sitenoroot + rooturl; var site = sitenoroot + rooturl;
Response.ContentType = "application/javascript";
//lcl.buildClientLCL(); //lcl.buildClientLCL();
// LET OP: Geen FcltMgr.js en dus niet (clientside) zelflerend // LET OP: Geen FcltMgr.js en dus niet (clientside) zelflerend
%> %>

View File

@@ -92,7 +92,10 @@ function WriteResult2(sql, params)
jsonResult.checkExist = true; jsonResult.checkExist = true;
if (callback) if (callback)
{
Response.ContentType = "application/javascript";
Response.Write(callback + "(" + JSON.stringify(jsonResult) + ")"); Response.Write(callback + "(" + JSON.stringify(jsonResult) + ")");
}
else else
Response.Write(JSON.stringify(jsonResult)); Response.Write(JSON.stringify(jsonResult));
} }

View File

@@ -80,7 +80,10 @@ LCL_Disable = 1; // wij zijn veel slimmer
} }
if (callback) if (callback)
{
Response.ContentType = "application/javascript";
Response.Write(callback + "(" + JSON.stringify(result) + ")"); Response.Write(callback + "(" + JSON.stringify(result) + ")");
}
else else
Response.Write(JSON.stringify(result)); Response.Write(JSON.stringify(result));
%> %>