Detecting Failed Images

K

Keith

Is there any way in VB ASP of identifying if an image which is placed on a
page fails (if it's simply not been put on the server for instance so IE
gives it a red X)?

I want to detect this if it happens and display a default image or
something.

Thanks
 
E

Evertjan.

Keith wrote on 20 feb 2005 in microsoft.public.inetserver.asp.general:
Is there any way in VB ASP of identifying if an image which is placed
on a page fails (if it's simply not been put on the server for
instance so IE gives it a red X)?

I want to detect this if it happens and display a default image or
something.

You could stream all the images via a serverside streaming script,
and after testing if the file exists.

Testing if a file exists is shown here:

<http://aspfaq.com/show.asp?id=2039>

The streaming technique is shown here:

<http://aspfaq.com/show.asp?id=2276>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top