Results 1 to 2 of 2

Thread: SSI Last Mod Date Problem

  1. #1
    Join Date
    Mar 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default SSI Last Mod Date Problem

    Can anyone tell me why when I put the javascript command "document.write(document.lastModified)" into a footer file and include it in my index.shtml file I always get todays date and not the last mod date of the index.shtml file? If I place the line in a .html file it works fine, it only goofs up if I use it in a SSI file. Even if I put the command directly into the index.shtml it will not work, but if I change the file name to index.html it does work. I am using IE 6.0 and I think we use IIS 4.0 for our servers. Thanks for any help

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,925
    Thanks
    43
    Thanked 3,190 Times in 3,154 Posts
    Blog Entries
    12

    Default

    Isn't a .shtml file generated on the fly? If so, the date would be correct. A common work around in situations where document.lastModified is problematic is to, Ulp! you guessed it, insert the date when you modify the file.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •