Re: Last Updated
by "John Murray" <jmnc(at)lis.net.au>
|
Date: |
Thu, 5 Oct 2000 21:11:50 +1000 |
To: |
"The Lion's Cub" <lionscub(at)elknet.net> |
Cc: |
<hwg-techniques(at)hwg.org> |
References: |
lionscub opalintel |
|
todo: View
Thread,
Original
|
|
<!--#flastmod file="ssi.htm" --> If you decide to go the ssi path, put
this into your document where you want the last modified date to appear and
see what happens. If it fires for you, then the next need you'll probably
stumble across is how to format the thing. Have a look here
http://adashimar.hypermart.net/ssi.htm but there are heaps of good ssi sites
around.
There other things you can come up against, and if you do, click through
this little content space http://www.baremetal.com/gadgets/htaccess/
But I'm willing to bet a $5 lottery ticket you wack <!--#flastmod
file="ssi.htm" --> and it will fire up for you.
By the way, I'd forgotten about this feature <!--#include
file="myfile.htm"--> surely the most handy little line of code out and
about for when you want to get efficient across a larger site but don't want
to use a database [like if you want to hang keyword and description meta
tags out for webcrawlers to come across - however speculative a high ranking
may be].
Could get you out of having to document.write a heap of stuff everytime you
want to put a piece of javascript generated text amongst the rest of your
offerings.
At least, this is how i currently understand it to be.
John
----- Original Message -----
From: John Murray <jmnc(at)lis.net.au>
To: The Lion's Cub <lionscub(at)elknet.net>
Cc: <hwg-techniques(at)hwg.org>
Sent: Thursday, October 05, 2000 4:58 PM
Subject: Re: Last Updated
> document.lastModified is what you are looking for. It gets passed across
> with the document info as part of the transfer protocol.
>
> The browser get's at it and shows it in it's File / Properties command
> [MSIE]. You'll probably want to use javascript to get at it.
>
> The question is, how do you plant it into your document without having to
> document.write our whole document around it.
>
> Can you do server side includes? If you can it's nice and neatto do it
that
> way. Beacuse if you do it on the users side of the phone line you have to
> pay around with building a new document with document.write and so on.
This
> can be a pain.
>
> You could also use css positioning and a couple of ID'ed DIV tags to give
> you a place to javascript into one of the DIV's the lastModified info, and
> then you could put the rest of your <body> </body> into the second div.
>
> Go ssi. No use using a spanner to knock a nail in with.
>
> That's how I currently understand the situation anyway.
>
> John
>
>
>
>
> Now I note that
> ----- Original Message -----
> From: The Lion's Cub <lionscub(at)elknet.net>
> To: HWG -- Techniques <hwg-techniques(at)hwg.org>
> Sent: Thursday, October 05, 2000 2:35 PM
> Subject: Last Updated
>
>
> > Is there a way to display last updated dates, that I don't have to type
> in.
> > I like them from the standpoint that it lets users know that page
content
> is
> > fresh, but they are a pain to remember to update the date everytime I
make
> a
> > change in the page. Is there a way for javascripts to look at the date
of
> a
> > file on the server and write that to the file?
>
>
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA