This function everytime gives "false", even if image_url
exists
// some .each {
var item = $('.item', this);
$.ajax({
url: image_url,
success: function() {
item.html("true");
},
error: function() {
item.html("false");
}
});
// }
Its used to check existance of image_url
file - this variable gives url like http://blog.com/teddybear.png
Any idea?