I am up a tree on trying to plug in a script that provides a workable "last revised" date and time. They all seem to come up with the current time. Any suggestions? --Derick
Would "upload date/time" do? No script required. RW servers support SSI, which has this capability. Go to this page: http://freepages.genealogy.rootsweb.com/~dav4is/test/test-ssi.html This demonstrates all the SSI functions. The PrintEnv shows all the built-in variables and Last_Modified is the upload date/time. There is a function to establish the date/time format. I use this to set the "uploaded" date/time on my pages, e.g. here: http://freepages.genealogy.rootsweb.com/~dav4is/ODTs/index.html#Services -R. Derick Hartshorn wrote: >I am up a tree on trying to plug in a script that provides a workable >"last revised" date and time. >They all seem to come up with the current time. Any suggestions? > >--Derick > > > -- Regards, Rod Dav4is / P.O. Box 118 / Hyde Park, NY 12538 / USA Genealogy, et Cetera: http://freepages.rootsweb.com/~dav4is/ 477 ancestral & collateral families, mostly 17°-19° century New England & European roots. Total population: 116,300+ Annex: http://www.gencircles.com/users/dav4is/ email: [email protected] Sometimes the road less traveled is less traveled for a reason. -Jerry Seinfeld
Derick Hartshorn wrote: >I am up a tree on trying to plug in a script that provides a workable >"last revised" date and time. >They all seem to come up with the current time. Any suggestions? > >--Derick > > >------------------------------- >To unsubscribe from the list, please send an email to [email protected] with the word 'unsubscribe' without the quotes in the subject and the body of the message > > > > try this: <script> var example example=document.lastModified document.write("This page was last modified: "+example) </script> It can be viewed on my site: http://usssabalo.org Jeff Owens
On 6/22/07, Jeff Owens <[email protected]> wrote: > try this: > > <script> > var example > example=document.lastModified > document.write("This page was last modified: "+example) > </script> > > It can be viewed on my site: http://usssabalo.org > > Jeff Owens Client-side scripts won't be able to extract the last-modified date from the HTML headers because the Apache server used by RootsWeb doesn't include it. On servers that implement SSI (server-side includes), it's not clear what date is the actual "last" modification. Is it the date of the main page? The most recent date of the included files? Apache has elected to avoid sending questionable data by simply not transmitting the last-modified date when SSI is enabled. I think you *might* be able to get your script to work by including the following in the HEAD section of your document: <meta http-equiv="last-modified" content="<!--#flastmod file="${DOCUMENT_NAME}" -->"> But if you're going to do that, just use the <!--#echo SSI command to put the date where you want it in your output page. You can use the <!--#config SSI command to set up the exact format you want the date to have. See my SSI tutorials at http://freepages.computers.rootsweb.com/~elsi/SSI.html Regards, Elsi
At 01:24 PM 6/22/2007, Derick Hartshorn wrote: >I am up a tree on trying to plug in a script that provides a workable >"last revised" date and time. >They all seem to come up with the current time. Any suggestions? <!--#echo var="LAST_MODIFIED"--> Dale H. Cook, Chief Engineer, Centennial Broadcasting, Roanoke/Lynchburg, VA - WZZI / WZZU / WLNI / WLEQ http://members.cox.net/dalehcook/starcity.shtml