JavaScript: Check if Image exists - TechRepublic
General discussion
March 14, 2002 at 05:43 AM
artzan

JavaScript: Check if Image exists

by artzan . Updated 24 years, 3 months ago

I want to load an image into a variable, then check if that image does in fact exist, if not, I will bring in another image.

The processing goes like this: use uploads 0 to 3 jpgs via JSP/JavaBean, another user could view those jpgs, but there may not be 3 so thet will see that nasty little no-image tag in their browser. If anyone has a solution to this, many thanks.
Arthur

This discussion is locked

All Comments