Hi, I have a textbox where the user will enter a file path, a button that will add that path to a database. I want the button to verify whether the file exist and if not to open a dialog (probably with javascript:confirm...) and if the users accepts add the
path anyway. My problem is about opening that confirm dilog after verifying the existance of the file since I used to add the javascript as an attribute and of course it executes prior to doing the validation. Hope I made myself clear, thanks for our help!!!
you can't access the client-side filesystem. it's fundamental security restriction. so checking if the file exists on the client is a no-can-do, without activeX and a user who doesn't care about their security. j
RTFM - straight talk for web developers. Unmoderated, uncensored, occasionally unreadable
Because of the timing problem you described, a better solution would probably be to redirect the user to a "confirmation page", instead of using a message box. AutoFed
oh, hang on. having re-read this do you mean the file you're talking about is on the server? you'd need to do a round-trip, you couldn't accomplish that client-side - which do you mean - it'd be nice if it was cleared up.... j
RTFM - straight talk for web developers. Unmoderated, uncensored, occasionally unreadable
pecc
Member
185 Points
37 Posts
Conditional Confirm Dialog
Aug 13, 2003 02:08 AM|LINK
Atrax
All-Star
18705 Points
3733 Posts
Re: Conditional Confirm Dialog
Aug 13, 2003 03:44 AM|LINK
Jason Brown - MVP, IIS
autofed
Participant
1789 Points
357 Posts
Re: Conditional Confirm Dialog
Aug 13, 2003 04:10 AM|LINK
Atrax
All-Star
18705 Points
3733 Posts
Re: Conditional Confirm Dialog
Aug 13, 2003 04:31 AM|LINK
Jason Brown - MVP, IIS