Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Schedule Page Change


  • Please log in to reply

#1
magusbuckley

magusbuckley

    Member

  • Member
  • PipPipPip
  • 625 posts
Hello:

Just wondering if it's possible to schedule a web page to change on a certain date or at a certain time.

Example: Let's say I had a personal web site and on one of the pages I was, on my contact page, posting my personal phone number between the hours of 2pm and 6pm on Friday the 13th of June. Is it possible to schedule the phone number to display only during that four-hour window on that particular day?

Any and all information will be greatly appreciated.

Thanks,

Magus
  • 0

Advertisements


#2
magusbuckley

magusbuckley

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 625 posts
I found a fix. I know there is a way to scedule the changes as I mentioned before, but I'm not sure how to write the code. For now, I made a batch file that transfers a new version of the page and a second batch file that transfers the original version of the page. Then, I used Windows Task Scheduler to schedule the batch files to run. The first batch file runs at the starting time for the update and pushes the new verson of the web page out. Later, at the ending time, the second batch file is scheduled to run. It replaces the new web pag code with the original.

Not exactly the best way to get this done, but it works. Tested OK.

Thanks,

Magus
  • 0

#3
xmephistox

xmephistox

    Member

  • Member
  • PipPip
  • 42 posts
Javascript should be able to handle this. Google for some good javascript resources, they usually have loads of free scripts.
Although on second thought, you want it to be YOUR time and not the time of your visitor who might be in a different time zone.
In that case it gets a bit more complicated.

Edited by xmephistox, 07 June 2010 - 10:41 PM.

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP