Click here to Skip to main content
15,902,189 members
Home / Discussions / Web Development
   

Web Development

 
Generalopen file Pin
Kalibur5710-Dec-04 22:06
Kalibur5710-Dec-04 22:06 
GeneralRe: open file Pin
MoustafaS13-Dec-04 0:10
MoustafaS13-Dec-04 0:10 
GeneralRe: open file Pin
Paul Watson13-Dec-04 4:44
sitebuilderPaul Watson13-Dec-04 4:44 
Generalmultiple upload Pin
jeanperlin10-Dec-04 17:53
jeanperlin10-Dec-04 17:53 
GeneralRe: multiple upload Pin
alex.barylski12-Dec-04 16:00
alex.barylski12-Dec-04 16:00 
GeneralRe: multiple upload Pin
Paul Watson13-Dec-04 4:45
sitebuilderPaul Watson13-Dec-04 4:45 
QuestionIs it possible to detect if an image file really exists on the drive with javascript? Pin
davilism10-Dec-04 0:09
davilism10-Dec-04 0:09 
AnswerRe: Is it possible to detect if an image file really exists on the drive with javascript? Pin
alex.barylski10-Dec-04 11:34
alex.barylski10-Dec-04 11:34 
I recall doing something like this before.

As long as you know the names of the files i believe you can use this technique on both server or client side.

The IMG tag has a fileSize property which is read only. So what I would do ischange the IMG SRC dynamically and capture the onload the IMG fires when it loads any image, etc. In the onload handler check the fileSize property. If it's Zero or negative (I can't remember) the file doesn't exist or didn't load properly.

HTH

It's frustrating being a genius and living the life of a moron!!!
GeneralRe: Is it possible to detect if an image file really exists on the drive with javascript? Pin
davilism12-Dec-04 19:44
davilism12-Dec-04 19:44 
GeneralRe: Is it possible to detect if an image file really exists on the drive with javascript? Pin
alex.barylski13-Dec-04 8:20
alex.barylski13-Dec-04 8:20 
Questionhow can i ... Pin
3dman8-Dec-04 15:18
3dman8-Dec-04 15:18 
AnswerRe: how can i ... Pin
alex.barylski8-Dec-04 15:29
alex.barylski8-Dec-04 15:29 
GeneralRe: how can i ... Pin
3dman8-Dec-04 15:36
3dman8-Dec-04 15:36 
GeneralRe: how can i ... Pin
alex.barylski8-Dec-04 18:08
alex.barylski8-Dec-04 18:08 
AnswerRe: how can i ... Pin
raouls8-Dec-04 19:09
raouls8-Dec-04 19:09 
AnswerRe: how can i ... Pin
Roger Wright9-Dec-04 20:29
professionalRoger Wright9-Dec-04 20:29 
Generalclient-side word automation Pin
DavidNohejl8-Dec-04 13:57
DavidNohejl8-Dec-04 13:57 
Generalcalender with scheduler option Pin
8-Dec-04 13:40
suss8-Dec-04 13:40 
GeneralRe: calender with scheduler option Pin
alex.barylski8-Dec-04 15:31
alex.barylski8-Dec-04 15:31 
GeneralRe: calender with scheduler option Pin
JKroschel12-Dec-04 20:27
JKroschel12-Dec-04 20:27 
GeneralRe: calender with scheduler option Pin
Member 157626913-Dec-04 5:58
Member 157626913-Dec-04 5:58 
GeneralRe: calender with scheduler option Pin
JKroschel15-Dec-04 8:52
JKroschel15-Dec-04 8:52 
GeneralDatalist Rendering Pin
samer79y7-Dec-04 23:33
samer79y7-Dec-04 23:33 
GeneralRe: Datalist Rendering Pin
Paul Watson9-Dec-04 5:58
sitebuilderPaul Watson9-Dec-04 5:58 
Generalconnecting to an oracle database from an ASP page Pin
bcoulter7-Dec-04 6:07
bcoulter7-Dec-04 6:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.