PC Review


Reply
Thread Tools Rate Thread

Date/time updating

 
 
Mike
Guest
Posts: n/a
 
      7th Jan 2004
I've always had a date/time component on my pages to show when they were
last updated.

It seems to me I've been using the date in the border method for quite some
time (years?) and I seem to recall the date shown on a page on the web was
the date that the particular page was updated. However, lately it
appears that every page has the exact same date and I know I didn't update
every page on that day.

If I put the component in a bottom border, will the date displayed be the
date
of the last border update or the date of the particular page that the
border is
currently displayed with?


mike


 
Reply With Quote
 
 
 
 
Andrew Murray
Guest
Posts: n/a
 
      7th Jan 2004

"Mike" <(E-Mail Removed)> wrote in message
news:NP%Kb.32293$(E-Mail Removed)...
> I've always had a date/time component on my pages to show when they were
> last updated.
>
> It seems to me I've been using the date in the border method for quite some
> time (years?) and I seem to recall the date shown on a page on the web was
> the date that the particular page was updated. However, lately it
> appears that every page has the exact same date and I know I didn't update
> every page on that day.
>
> If I put the component in a bottom border, will the date displayed be the
> date
> of the last border update or the date of the particular page that the
> border is
> currently displayed with?
>
>
> mike
>
> If you have the 'Last Updated' date in shared borders, that means it will show

up on every page. Putting the component in the shared border should I would
think reflect the date the main page is updated, not when the border page
(bottom.htm etc) was updated. If you want to reflect a specific page "last
update" then put it on that page, not in the borders.


 
Reply With Quote
 
Jim Buyens
Guest
Posts: n/a
 
      7th Jan 2004
Based on a quick test, a Date And Time component located
in a Shared border seems to display the date the shared
border was updated, and not the date the main page was
updated.

For ordinary HTML pages, the following script will display
the date of the main page, no matter where you put it.

<script>document.write(document.lastModified);</script>

For ASP and ASP.NET pages, though, the preceding script
will always show the current date. That's because the Web
server creates a new version of the page every time a
visitor requests it. So, for those kinds of pages, you
need to write some code that runs on the server, gets the
file system date, and displays it.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------



>-----Original Message-----
>I've always had a date/time component on my pages to show

when they were
>last updated.
>
>It seems to me I've been using the date in the border

method for quite some
>time (years?) and I seem to recall the date shown on a

page on the web was
>the date that the particular page was updated. However,

lately it
>appears that every page has the exact same date and I

know I didn't update
>every page on that day.
>
>If I put the component in a bottom border, will the date

displayed be the
>date
>of the last border update or the date of the particular

page that the
>border is
>currently displayed with?
>
>
>mike
>
>
>.
>

 
Reply With Quote
 
Paul S. Wolf
Guest
Posts: n/a
 
      7th Jan 2004
On 1/7/2004 6:02 PM, Andrew Murray wrote:
> "Mike" <(E-Mail Removed)> wrote in message
> news:NP%Kb.32293$(E-Mail Removed)...
>
>>I've always had a date/time component on my pages to show when they were
>>last updated.
>>
>>It seems to me I've been using the date in the border method for quite some
>>time (years?) and I seem to recall the date shown on a page on the web was
>>the date that the particular page was updated. However, lately it
>>appears that every page has the exact same date and I know I didn't update
>>every page on that day.
>>
>>If I put the component in a bottom border, will the date displayed be the
>>date
>>of the last border update or the date of the particular page that the
>>border is
>>currently displayed with?
>>
>>
>>mike
>>
>>If you have the 'Last Updated' date in shared borders, that means it will show

>
> up on every page. Putting the component in the shared border should I would
> think reflect the date the main page is updated, not when the border page
> (bottom.htm etc) was updated. If you want to reflect a specific page "last
> update" then put it on that page, not in the borders.
>
>

Rather than putting it into a bottom shared border, put it into an
"include page" that is inserted at the bottom of each page. Then it
will be updated when the main page is updated. See the following page
in the following section of the web I maintain, as an example:

http://usscouts.org/mb/mb001.html

The code front page inserted on that page is:

<!--webbot bot="Include" u-include="../include/fp-footer.htm" tag="BODY"
startspan -->

The "..include/fp-footer.htm" page which gets included has the following
code (in part):

<p align="center">Page updated on:
<!--webbot bot="Timestamp" s-type="REGENERATED" s-format="%B %d, %Y" --></p>

When the page was last saved (7/18/03), Front Page converted all of that to:

<p align="center">Page updated on: July 18, 2003</p>

Just for clarity, as it happen, I do NOT use FP extensions to maintain
that web. I use FTP, and I don't publish the /include/ directory. But
that's no big deal. Even if it were published, it would be an unlinked page.

--
Yours in Scouting,
Paul S. Wolf, P.E. mailto(E-Mail Removed)
***********************************************
Advancement/Awards/Safety Webmaster
U.S. Scouting Service Project, Inc.
http://www.usscouts.org/start.asp
©2003 All Rights Reserved
***********************************************

 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      8th Jan 2004
The FP Include Page is the same as a shared border with the exception that a
shared border can be applied globally and it limited to placement in one of
4 areas of a page.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Paul S. Wolf" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On 1/7/2004 6:02 PM, Andrew Murray wrote:
> > "Mike" <(E-Mail Removed)> wrote in message
> > news:NP%Kb.32293$(E-Mail Removed)...
> >
> >>I've always had a date/time component on my pages to show when they were
> >>last updated.
> >>
> >>It seems to me I've been using the date in the border method for quite

some
> >>time (years?) and I seem to recall the date shown on a page on the web

was
> >>the date that the particular page was updated. However, lately it
> >>appears that every page has the exact same date and I know I didn't

update
> >>every page on that day.
> >>
> >>If I put the component in a bottom border, will the date displayed be

the
> >>date
> >>of the last border update or the date of the particular page that the
> >>border is
> >>currently displayed with?
> >>
> >>
> >>mike
> >>
> >>If you have the 'Last Updated' date in shared borders, that means it

will show
> >
> > up on every page. Putting the component in the shared border should I

would
> > think reflect the date the main page is updated, not when the border

page
> > (bottom.htm etc) was updated. If you want to reflect a specific page

"last
> > update" then put it on that page, not in the borders.
> >
> >

> Rather than putting it into a bottom shared border, put it into an
> "include page" that is inserted at the bottom of each page. Then it
> will be updated when the main page is updated. See the following page
> in the following section of the web I maintain, as an example:
>
> http://usscouts.org/mb/mb001.html
>
> The code front page inserted on that page is:
>
> <!--webbot bot="Include" u-include="../include/fp-footer.htm" tag="BODY"
> startspan -->
>
> The "..include/fp-footer.htm" page which gets included has the following
> code (in part):
>
> <p align="center">Page updated on:
> <!--webbot bot="Timestamp" s-type="REGENERATED" s-format="%B %d,

%Y" --></p>
>
> When the page was last saved (7/18/03), Front Page converted all of that

to:
>
> <p align="center">Page updated on: July 18, 2003</p>
>
> Just for clarity, as it happen, I do NOT use FP extensions to maintain
> that web. I use FTP, and I don't publish the /include/ directory. But
> that's no big deal. Even if it were published, it would be an unlinked

page.
>
> --
> Yours in Scouting,
> Paul S. Wolf, P.E. mailto(E-Mail Removed)
> ***********************************************
> Advancement/Awards/Safety Webmaster
> U.S. Scouting Service Project, Inc.
> http://www.usscouts.org/start.asp
> ©2003 All Rights Reserved
> ***********************************************
>



 
Reply With Quote
 
Ivor Jones
Guest
Posts: n/a
 
      8th Jan 2004

"Mike" <(E-Mail Removed)> wrote in message
news:NP%Kb.32293$(E-Mail Removed)...
> I've always had a date/time component on my pages to show when they were
> last updated.
>
> It seems to me I've been using the date in the border method for quite

some
> time (years?) and I seem to recall the date shown on a page on the web

was
> the date that the particular page was updated. However, lately it
> appears that every page has the exact same date and I know I didn't

update
> every page on that day.
>
> If I put the component in a bottom border, will the date displayed be

the
> date
> of the last border update or the date of the particular page that the
> border is
> currently displayed with?


As an aside to this question, can anyone tell me if in FP2000 it's
possible to have the year displayed and updated every year without having
to go into every page and change it manually..?

I have a copyright message at the bottom of each page on my site, along
with the date it was last updated, in the form:

© Ivor D Jones 2002 - 2004
Page last updated 08 Jan 2004, 1730

The date of the page update changes ok but how can I get the second of the
two year figures to change every year..? I know it's only once a year but
it's a pain when you have more than a handful of pages..!

Ivor




 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      8th Jan 2004
I use ASP to accomplish this on all of my projects, but you may be able to
do this with JavaScript.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Ivor Jones" <(E-Mail Removed)> wrote in message
news:btk5c8$iqi$(E-Mail Removed)...
>
> "Mike" <(E-Mail Removed)> wrote in message
> news:NP%Kb.32293$(E-Mail Removed)...
> > I've always had a date/time component on my pages to show when they were
> > last updated.
> >
> > It seems to me I've been using the date in the border method for quite

> some
> > time (years?) and I seem to recall the date shown on a page on the web

> was
> > the date that the particular page was updated. However, lately it
> > appears that every page has the exact same date and I know I didn't

> update
> > every page on that day.
> >
> > If I put the component in a bottom border, will the date displayed be

> the
> > date
> > of the last border update or the date of the particular page that the
> > border is
> > currently displayed with?

>
> As an aside to this question, can anyone tell me if in FP2000 it's
> possible to have the year displayed and updated every year without having
> to go into every page and change it manually..?
>
> I have a copyright message at the bottom of each page on my site, along
> with the date it was last updated, in the form:
>
> © Ivor D Jones 2002 - 2004
> Page last updated 08 Jan 2004, 1730
>
> The date of the page update changes ok but how can I get the second of the
> two year figures to change every year..? I know it's only once a year but
> it's a pain when you have more than a handful of pages..!
>
> Ivor
>
>
>
>



 
Reply With Quote
 
=?Utf-8?B?d3A=?=
Guest
Posts: n/a
 
      8th Jan 2004
Try a "search and replace" using the entire string.
 
Reply With Quote
 
Ivor Jones
Guest
Posts: n/a
 
      8th Jan 2004

"wp" <(E-Mail Removed)> wrote in message
news:6DF6C52A-67E1-4C5E-9FF4-(E-Mail Removed)...
> Try a "search and replace" using the entire string.


The simple ones are always the best :-) I haven't tried it yet but I
can't see why it shouldn't work, thanks..!

Ivor


 
Reply With Quote
 
David Baxter
Guest
Posts: n/a
 
      9th Jan 2004
It does work - I do that every January...


"Ivor Jones" <(E-Mail Removed)> wrote in message
news:btkbiu$nkh$(E-Mail Removed)...
>
> "wp" <(E-Mail Removed)> wrote in message
> news:6DF6C52A-67E1-4C5E-9FF4-(E-Mail Removed)...
> > Try a "search and replace" using the entire string.

>
> The simple ones are always the best :-) I haven't tried it yet but I
> can't see why it shouldn't work, thanks..!
>
> Ivor
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Time / Date =?Utf-8?B?S2lt?= Windows XP Internet Explorer 2 11th Jan 2005 01:14 AM
updating date and time =?Utf-8?B?RGF2ZTg4OA==?= Microsoft Word Document Management 1 10th Dec 2004 03:46 AM
How do you keep a date from updating each time you open a documen. =?Utf-8?B?TG91LUFubg==?= Microsoft Word Document Management 0 20th Sep 2004 05:09 PM
Date and time continuously updating? Martin Clapp Microsoft Powerpoint 3 10th Mar 2004 09:50 PM
Date/Time updating Mike Microsoft Frontpage 4 24th Nov 2003 09:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:47 AM.