You cannot make Ajax requests to external sites, unless they explicitly allow it. That's called the same origin policy.
In your case, you don't even have to make an Ajax request. You should just assign the URL to the src
property of the image:
$('#cont').click(function() {
var i = new Image();
i.src = 'http://pp.vk.me/c608129/v608129926/13d7/M78M4KmekWI.jpg';
$(this).append(i);
});
or more jQuery-like:
$('#cont').click(function() {
$('<img />', {
src: 'http://pp.vk.me/c608129/v608129926/13d7/M78M4KmekWI.jpg'
}).appendTo(this);
});
The browser will load the image by itself.
You can bind an error event handler to the image and do whatever you want to do if image is not available, and a load event handler to get notified that the image was loaded:
$('#cont').click(function() {
$('<img />', {
src: 'http://pp.vk.me/c608129/v608129926/13d7/M78M4KmekWI.jpg',
on: {
load: function() {
console.log('Image loaded successfully');
},
error: function() {
console.log('Error while loading image');
}
}
}).appendTo(this)
});