Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check if file exist - clientside??

Status
Not open for further replies.

shaugen

Programmer
May 30, 2000
9
0
0
NO
I have a script to change the src of an image, and it's working just fine.. but my problem is that I only want to change the img src if the file exist.

I'm aware of methods to do this ServerSide, so I'm not interested in that. Is there anyone out there who how to do this with JavaScript - ClientSide?

Is it even possible?


Stian Haugen
Web-Developer

"Trinity, help!" -neo, The Matrix 1999
 
No, this is not possible. JavaScript [client-side] has no I/O capability except for reading a .js source file.

Russ
 
Ok, thanks. That's what I thougt to. I just had to ask :)


Stian Haugen
Web-Developer

"There is no spoon" -neo, The Matrix 1999
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top