Re: lastModified not working

by "Cyanide _7" <leo7278(at)hotmail.com>

 Date:  Wed, 31 May 2000 20:55:55 CDT
 To:  j.kampherbeek(at)a1.nl
 Cc:  hwg-languages(at)hwg.org
  todo: View Thread, Original
>A HTTP-request might give you the originating date and time of a document 
>but
>this functionality is optional.
>Most servers do supply the information but you never can be sure about that 
>:-(

true, but why would the server report the correct date for IE, and 0 or -1 
for Netscape? I didn't know the server could react to the browser like that. 
- Cyanide_7

>Hi Lisa,
>
>Wise Lisa M Civ 355 TRS/RTS schreef:
>
> > I've used the following snippet in the bottom SSI for my site.  In IE, 
>it
> > updates the date and time on the page every time the page is accessed by 
>a
> > browser ?????
> > In Netscape, it gives a date in 1969.
>
>Let me guess: December 31, 1969, 23:59:59   ?
>You could also get a data Januar 1, 1970, 00:00:00 (1 second later).
>This is the Unix 'epoch', the starting time for Unix time reckoning and 
>also for
>JavaScript.
>
>
> > I guess I've missed some important update!  Can anyone help me? Do I 
>need to
> > change JavaScript versions in the code?
>
>The problem is not with JavaScript but in the specifications of the 
>HTTP-header.
>


>If the information is not given the "default" date of Januari 1 ,1970 is
>supplied or a time of 1 second earlier.
>
>The only workaround I know of is to test for the returned date with 
>JavaScript.
>If it's the epoch you can choose not to show the time/date.
>
> >
> > document.write("Last Modified " + document.lastModified)
> >
> > Thanks in advance.
> >
> > ***********************************************************
> > Lisa Wise
> > " In view of all the deadly computer viruses that have been spreading
> > lately, Weekend Update would like to remind you: when you link up to 
>another
> > computer, you're linking up to every computer that that computer has 
>ever
> > linked up to."
> > Dennis Miller  -  "Saturday Night Live"
> > **********************************************************
>
>--
>=============================================
>Jan Kampherbeek
>j.kampherbeek(at)a1.nl
>Webmaster of SpiderPro,
>the site for professional Internet-developers
>http://www.spiderpro.com
>jan(at)spiderpro.com
>=============================================
>
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA