This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > FrontPage Programming > August 2004 > Automatic page/link expiration





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Automatic page/link expiration
Kevin

2004-08-29, 7:15 pm

Hello everyone,

I've scanned through the month's worth of posts and I haven't seen anything
that matches my situation. What I would like to do is setup some kind of
automatic page expiration for either a webpage or a link to a webpage. I
have a submission form that I need to take down every Saturday at noon and I
would like to automate this process so I don't have to log on to the server
via Frontpage and do this manually. I'm thinking that this is possibly a
server side solution, but I figured that I would post to the gurus just in
case I missed something when I browsed through the FrontPage features. Any
assistance that you could provide is most appreciated.

Kevin


Ronx

2004-08-30, 7:14 am

This should be a server-side process.
You could use a client-side JavaScript in the form page similar to:

<script type="text/pseudocode">
if (day()=="Saturday" and time()>=11:59am) then
relocate.to("someotherpage.htm")
</script>

[Note: above uses pseudocode, not JavaScript]

However, this will only work correctly if:
The user is in the same time zone as the server. (for server, read you.)
The server AND user are both using the same settings for daylight saving
The user AND server have their system clocks set correctly
The user has JavaScript enabled (or for the above code, pseudocode enabled
:) )

HTH

Ron
--
Reply only to group - emails will be deleted unread.


"Kevin" <kmlong68@cox.net> wrote in message
news:%23DDdG2gjEHA.3696@TK2MSFTNGP15.phx.gbl...
> Hello everyone,
>
> I've scanned through the month's worth of posts and I haven't seen

anything
> that matches my situation. What I would like to do is setup some kind of
> automatic page expiration for either a webpage or a link to a webpage. I
> have a submission form that I need to take down every Saturday at noon and

I
> would like to automate this process so I don't have to log on to the

server
> via Frontpage and do this manually. I'm thinking that this is possibly a
> server side solution, but I figured that I would post to the gurus just in
> case I missed something when I browsed through the FrontPage features. Any
> assistance that you could provide is most appreciated.
>
> Kevin
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews