| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Alert user when file has been updated
I have found scripts to alert users when the page they are viewing has been updated. I'm looking for a script to alert the user when a page other that the page they are viewing has been updated.
The "news" page has the content stored in a .txt file. I want to set a cookie when they view the news page. Then when they return to the main page on their next visit I want an alert if the news.txt has been updated since the cookie was set. I'm a novice at best..... so cut and paste is my first choice ![]() Thanks! |
|
#2
|
||||
|
||||
|
Use the FileSystemObject to get the DateLastModified of the file and compare it to the cookie value. if the DateLastModified value is newer than the cookie, alert them.
|
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Alert user when file has been updated |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|