dear profissionals
I need help in solving out a problem that kills me .....
I have an archiving system the we save a back up file daily with the following file path format : "C:\windows\...\06-07-2006.pdf " . the whole path is always the same and only the file name which is on a date format is daily being changed ... on our Intranet webpage we have a button to access the last version of this backup file and to avoid updating this button hyperlink daily , I used a javascript the makes the file name a variable called ( date ) and the file path become
" 'C:\windows\..\' + 'date' + '.pdf' " and the code is working perfectly that when the date of the computer changes daily the hyperlink is automaticly change
the problem now is that this backup file is only being saved and available on the end of our working hours before that anyone click on that button will get a windows pup-up message the this path is nout found ...
I want to know how can I used a javascript to check for the link first .. if it is available then fine , if it's not I want a wnidow.alert message to appear telling that the link is not updated yet , please try to visit this link after 3:00 pm
am beginner in javascript so please provide me the solution with an example code ....
many thanks in advance
Shido,