Results 1 to 7 of 7

Thread: File exists in Javascript

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    Newcastle,UK
    Posts
    66

    File exists in Javascript

    Hiya

    Is there anyway of seeing if a file exists using javascript

    I know i can do this in VBS but really need to use Javascript unless someone knows of a way of calling an ASP function in XSL

    Thanks

    Sarah

  2. #2
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    not sure exactly what kind of file you're looking for, but:
    http://developer.irt.org/script/52.htm
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You cannot test for the existence of a file on the user's system in any web language that a sane person uses.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    Newcastle,UK
    Posts
    66
    It is to check the existance of a file on the server, an image file to see if we display it


  5. #5
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    client side JavaScript can definately NOt do that. what is this for? a slideshow?
    Have I helped you? Please Rate my posts.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    Newcastle,UK
    Posts
    66
    The link sent worked great - thanks!!

    It is being used in a new website, that lists companies, some companies have their logos on the site others dont, so we needed to work out how to do this!

  7. #7
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Somewhere in your database, you should specify if the image exists?

    oh, did you get it working already?
    Have I helped you? Please Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width