Automatic page/link expiration

K

Kevin

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
 
R

Ronx

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top