[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's New

You put the date of the visit as the cookie value.  You then compare the
time between the visit and the current date.  The result is a number, in
milliseconds (do some quick division to get it into days if you wish).  The
docs provide an example of comparing two dates and getting the difference
between them.

The other (and perhaps easier, and maybe even better) way is to put versions
on your documents, and store the version.  For example, if they last visited
at version 5, and you're now at eight, you can pick up the changes for 6, 7,
and 8 and display those.

You're right -- it's KEWL!

-- Gordon

At 05:42 PM 3/5/96 +0000, you wrote:
>I am using a cookie based java Script that
>auto informs the client that they recently 
>visited my site(gives reference of date/time).
>How can I make the Javascript autoload a
>specific page based on the time they
>previously visited.  So that if they
>were there three days ago, it autoloads
>a change file that has all the changes
>of the last three days.
>That would be KEWL.
>C'mon help the government help itself,
>pls e-mail me directly.

For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/