Where do these scripts pull the date from. Some I have seen just use todays date, so everytime you pull a page up it has last updated with todays date.. Mary On 1/11/2010 3:01 AM, rootsweb-help-request@rootsweb.com wrote: > > Today's Topics: > > 1. Re: "updated" script (Rod Dav4is) > 2. Re: "updated" script (Robert Sullivan) > 3. Re: "updated" script (Mona) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 10 Jan 2010 08:00:17 -0500 > From: Rod Dav4is<dav4is@yahoo.com> > Subject: Re: [ROOTSWEB-HELP] "updated" script > To: rootsweb-help@rootsweb.com > Message-ID:<4B49CF61.8070605@yahoo.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > You can avoid using JavaScript altogether and use the Server Side > Include (SSI) facility. Heres the code that I put on every page: > > <!--#echo encoding="none" var="DOCUMENT_URI" --> > <!--#CONFIG TIMEFMT="%Y-%m-%d %R" --> > <br>Uploaded:<!--#echo encoding="none" var="LAST_MODIFIED" --> > > That puts the URI of the page and the date uploaded so: > > /~dav4is/people/HABSBURG.htm > Uploaded: 2009-09-02 13:43 > > -R. > > Susan W Pieroth wrote: > > -- Mary W. Ellis Registrar Battle of Alamance DAR http://www.ncgenweb.us/alamance/ http://www.rootsweb.ancestry.com/~ncacgs/ http://homepages.rootsweb.ancestry.com/~mwellis/ http://www.rootsweb.ancestry.com/~ncalaman/ (Brick Church site)
The dates are returned from the server using Server Side Includes. Here are three short tutorials... HTML Goodies SSI: The Include Command http://www.htmlgoodies.com/beyond/webmaster/article.php/3473341 SSI: Dates and Times http://www.htmlgoodies.com/beyond/webmaster/article.php/3473351 has a table of arguments that you can use to format the output SSI: File Returns http://www.htmlgoodies.com/beyond/webmaster/article.php/3473361 Mary wrote: > Where do these scripts pull the date from. Some I have seen just use > todays date, so everytime you pull a page up it has last updated with > todays date.. > > Mary
Mary wrote: > Where do these scripts pull the date from. Some I have seen just use > todays date, so everytime you pull a page up it has last updated with > todays date.. > > Mary I don't know about any of the others, but mine changes only when I upload that page again. -- Mona Houser HeritageHunt@Sandyviewinfo.net Our Family -- http://freepages.genealogy.rootsweb.com/~monajo/ Nahausen Families – http://freepages.genealogy.rootsweb.com/~monajo/nah/ My Database – http://wc.rootsweb.com/~monahouser Buffalo County NEGenWeb --www.rootsweb.com/~nebuffal/
> Where do these scripts pull the date from. Some I have seen just use > todays date, so everytime you pull a page up it has last updated with > todays date.. The last-modified date of the page is one of the variables available when you use server side includes. You're seeing something which uses the system date, which is also accessible via SSIs but not what you want in this case. -- Bob Sullivan Schenectady Digital History Archive <http://www.schenectadyhistory.org/> Schenectady County (NY) Public Library