Possible Duplicate:
How do I check if file exists in jQuery or Javascript?
I'm building this dynamic slider from an XML file. The slider loads images from Target's server . Unfortunately not all the images on the xml exist on the server and I want to avoid blank slides (I place the images as background-image on each slide once I get the list).
Is there a way (with javascript) I can check these images are not 404 before I even bother to populate my slider? I cant do ajax because they are in another server I have no access to or control.
I just need to detect the faulty images before I put them on the list (array) Im feeding my slider.