Click to See Complete Forum and Search --> : Check if file exists on server


mjvbosox
02-26-2003, 02:06 PM
I've encountered a situation where I need JavaScript to check and see if a .mov file exists on the server, and subsequently enable/disable a link to the file.

Something like this:

if ("mypath/myclip.mov" exists) {

document.writeln("<a href='mypath/myclip.mov'>Play Clip</a>");

} else {

document.writeln("No Clip Available");

}

My question is how do I determine if "mypath/myclip.mov" exists?

dabush
02-26-2003, 02:18 PM
not possible with javascript