Refused to execute a JavaScript script. Source code of script found within request - JSONP
Hi there,
Could someone help me with the folllowing? This script works in Firefox but not Safari or Chrome. I believe it has something to do with the .append function. I get this message upon running the script:
"Refused to execute a JavaScript script. Source code of script found within request "
(jq14 = $)
- jq14.getJSON("http://area.crosbiedesign.co.nz/media/client/external/php/get_to_post.php?callback=?",
{
sendTo: "http://area.crosbiedesign.co.nz/area/brands/external",
type: 'overview',
format: "json"
},
function(data) {
if(data.success == true){
jq14.each(data.brand, function(i, item) {
console.log(data.brand[i]);
jq14("#brand_grid ul").append('<li id="'+data.brand[i].id+'" class="'+data.brand[i].class+'" ><a href="'+data.brand[i].href+'" style="background: url(\'http://area.crosbiedesign.co.nz'+data.brand[i].img.grid_img+'\') no-repeat center;" target="'+data.brand[i].target+'" title="'+data.brand[i].brand+'" class="'+data.brand[i].class+'">'+data.brand[i].brand+'</a></li>');
});
}
return true;
});
Any help would be much appreciated.
Cheers,
Michael