Resource interpreted as document but transferred with MIME type image/gif
Posted: 01 Jul 2020
Hi all,
I have an MS Edge problem. In my form I have a refresh button with a OnClick event:
fd.onsubmit(function() {
var uri = fd.setUrlParam(decodeURIComponent(window.location.href), 'FDRedirectWithID', 'fd_Item_Edit.aspx?ID=');
fd.sourceFormParam(uri);
return true;
});
fd.save().click();
When I use the Internet Explorer, everything works fine. If I use MS Edge, the following error occurs.
Resource interpreted as document but transferred with MY-URL MIME type image/gif https://url/_layouts/15/images/blank.gif
when the following script runs
//Calculate Hardware
var total = 0;
var rows = fd.relatedItems(3).data('ctx').ListData.Row;
rows.forEach(function(item) {
total += parseFloat(item['Kosten.'])
total_overall += parseFloat(item['Kosten.'])
});
fd.field('Kosten_x0020_Hardware_x0020__x00').value(Number(total.toFixed(2)).toLocaleString("de-DE", {style: "currency", currency: "EUR"}) + ' €');
Can you help?
Best wishes
Tom
I have an MS Edge problem. In my form I have a refresh button with a OnClick event:
fd.onsubmit(function() {
var uri = fd.setUrlParam(decodeURIComponent(window.location.href), 'FDRedirectWithID', 'fd_Item_Edit.aspx?ID=');
fd.sourceFormParam(uri);
return true;
});
fd.save().click();
When I use the Internet Explorer, everything works fine. If I use MS Edge, the following error occurs.
Resource interpreted as document but transferred with MY-URL MIME type image/gif https://url/_layouts/15/images/blank.gif
when the following script runs
//Calculate Hardware
var total = 0;
var rows = fd.relatedItems(3).data('ctx').ListData.Row;
rows.forEach(function(item) {
total += parseFloat(item['Kosten.'])
total_overall += parseFloat(item['Kosten.'])
});
fd.field('Kosten_x0020_Hardware_x0020__x00').value(Number(total.toFixed(2)).toLocaleString("de-DE", {style: "currency", currency: "EUR"}) + ' €');
Can you help?
Best wishes
Tom