I\'m loading an image path via jQuery $.ajax and before showing the image I\'d like to check if it in fact exists. Can I use the image load/ready event or something similar
Well, you can bind .error() handler...
like this,
$(".myimage").error(function(){ $(this).hide(); });
well, yours is okay already with load-event
$(".myimage").load(function() { $(this).show(); });
the problem with this is if Javascript was disabled the image will not ever show...