I run the code with chrome and it works fine, but when I run it in IE. I get the error ->
I have been reading and "supposedly" is that I have the JSON badly formed, but if it were like that, it would not work in chrome and I the JSON see it well …
{
"areaCarga": "custom - app",
"visualization": "M-T-2",
"text": "Other related products",
"multimedia": [{
"titulo": "1-tecnologia Digital",
"entrada": " 100% digital, ideal para operar en cualquier momento del día",
"enlace": "",
"imagen": "./images/hablamos-01.jpg"
},
{
"titulo": "2-tecnologia Digital",
"entrada": " 100% digital, ideal para operar en cualquier momento del día",
"enlace": "",
"imagen": "./images/hablamos-01.jpg"
},
{
"titulo": "3-tecnologia Digital",
"entrada": " 100% digital, ideal para operar en cualquier momento del día",
"enlace": "",
"imagen": "./images/hablamos-01.jpg"
},
{
"titulo": "4-tecnologia Digital",
"entrada": " 100% digital, ideal para operar en cualquier momento del día",
"enlace": "",
"imagen": "./images/hablamos-01.jpg"
},
{
"titulo": "5-tecnologia Digital",
"entrada": " 100% digital, ideal para operar en cualquier momento del día",
"enlace": "",
"imagen": "./images/hablamos-01.jpg"
},
{
"titulo": "6-tecnologia Digital",
"entrada": " 100% digital, ideal para operar en cualquier momento del día",
"enlace": "",
"imagen": "./images/hablamos-01.jpg"
},
{
"titulo": "7-tecnologia Digital",
"entrada": " 100% digital, ideal para operar en cualquier momento del día",
"enlace": "",
"imagen": "./images/hablamos-01.jpg"
},
{
"titulo": "8-tecnologia Digital",
"entrada": " 100% digital, ideal para operar en cualquier momento del día",
"enlace": "",
"imagen": "./images/hablamos-01.jpg"
}]
}
I'm using IE-> 11 and I'm not using frameworks or anything for Javascript, it's a .js echo by me, native, without jquery or anything.
I repeat: Chrome works well the carousel, IE gives the error of the image.
// Main function: load the input element.json
function cargaMultiContentVistaCarousel () {
// we perform JSON validation process
var request = new XMLHttpRequest ();
request.open ("GET", "./entry_multi_content_vista_carousel_10.json", true);
request.send (null);
request.onreadystatechange = function () {
if (request.readyState === 4 && request.status === 200) {
var MyJSON = JSON.parse (request.responseText);
processMultiContentVistaCarousel (MyJSON);
}
}
}
function procesMultiContentVistaCarousel (JSON) {