This error occurred in my script, but in my script it does not have this line break that the error is showing.
The error description is exactly this:
Uncaught Syntax Error: Unexpected Token ILLEGAL
Does anyone know exactly why this error occurred?
Theerrorisoccurringinappend.
$(function(){$("body").on("click",".voltar", function(){
$("#fotos").animate({height: 'toggle'});
$("#albuns").animate({height: 'toggle'});
});
$("body").on("click", ".album", function () {
$("#albuns").animate({height: 'toggle'});
$.ajax({
method: 'POST',
url: '../codes/album.php',
data: {
id : $(this).attr('data-id')
},
success: function (result) {
var retorno = JSON.parse(result);
$("#fotos").css("display","initial");
$("#fotos").empty();
$(retorno).each(function(key, value){$("#fotos").append("<div class='col-lg-3 col-sm-3 col-md-3 col-xs-6 center'><img class='img' src=" + retorno[key].URL + "><br /><small>" + retorno[key].NOME + "</small></div>");})
$("#fotos").append("<a class='btn btn-default voltar'>Voltar</a>");
} // fim success
}); // fim ajax
});
})
One detail that I forgot to add is that on the Linux server my previous and suggested codes do not show any errors, even because I tested it and it works well. But on the Windows server , where I need this code, you are experiencing these errors.