Click to See Complete Forum and Search --> : File exists in Javascript
SarahNcl
Jan 26th, 2004, 10:38 AM
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
ober0330
Jan 26th, 2004, 11:14 AM
not sure exactly what kind of file you're looking for, but:
http://developer.irt.org/script/52.htm
CornedBee
Jan 26th, 2004, 11:22 AM
You cannot test for the existence of a file on the user's system in any web language that a sane person uses.
SarahNcl
Jan 27th, 2004, 02:46 AM
It is to check the existance of a file on the server, an image file to see if we display it
:)
Acidic
Jan 27th, 2004, 04:46 AM
client side JavaScript can definately NOt do that. what is this for? a slideshow?
SarahNcl
Jan 27th, 2004, 04:48 AM
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!
Acidic
Jan 27th, 2004, 04:52 AM
Somewhere in your database, you should specify if the image exists?
oh, did you get it working already?
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.