Detecting Failed Images

Discussion in 'ASP General' started by Keith, Feb 20, 2005.

  1. Keith

    Keith Guest

    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
     
    Keith, Feb 20, 2005
    #1
    1. Advertising

  2. Keith

    Evertjan. Guest

    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>

    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)
     
    Evertjan., Feb 20, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bijoy Naick

    Detecting Failed Authorization

    Bijoy Naick, Nov 30, 2004, in forum: ASP .Net
    Replies:
    9
    Views:
    567
    Bijoy Naick
    Dec 1, 2004
  2. Roedy Green

    detecting unchanged images

    Roedy Green, Jun 26, 2005, in forum: Java
    Replies:
    7
    Views:
    409
    Roedy Green
    Jun 27, 2005
  3. sck10
    Replies:
    6
    Views:
    934
    sck10
    Sep 1, 2006
  4. kiran
    Replies:
    5
    Views:
    3,475
  5. Tony Johansson
    Replies:
    3
    Views:
    16,379
    Patrice
    Jan 2, 2010
Loading...

Share This Page