How to refresh automatically? - Page 1

User 401662 Photo


Registered User
23 posts

My calendar page, http://www.suzyandbyron.com/Calendar.html, has a CoffeeCup Web Calendar in the middle of it, but it does not always show all the events. Many are missing until you do a refresh.

I need to know if there is a way to put some kind of code somewhere so that the calendar page will automatically do a refresh every time it is accessed by everyone.

Can this be done? If so, please help!!

Thanks!
Byron
User 133269 Photo


Registered User
2,900 posts

Refresh page after 5 seconds:

<meta http-equiv="refresh" content="5">

in the <head> section of your page ;)
Have fun
~ Fe Pixie ~
User 447065 Photo


Trial User
4 posts

It can be quite disturbing to visitors when the page keeps getting refresh while reading, you can perhaps explore the AJAX solution, more details here :-

http://ajaxpatterns.org/Periodic_Refresh
User 401662 Photo


Registered User
23 posts

Thank you guys!!

I'm looking for just one refresh as soon as the page appears. Is there any way of doing that?

thanks!
Byron
User 355448 Photo


Ambassador
3,144 posts

Byron,

I think we may have been stuck thinking about the word REFRESH. Maybe what you really want is for the page to load fresh each time? If so, keeping the browser from caching the code should force a fresh load each time.

Give this a try and see if it does what you want:

<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

If the page is large, the lack of cache will slow down subsequent views of the page that would have been loaded from cache.

Let me know if that does what you want.
User 401662 Photo


Registered User
23 posts

YES!! Exactly Bill!!

Where does this code go? In the <Head> section?

If so, do I add the code to the header section of the calendar page from Visual Site Designer or do I add it to index.htm & index.html?

Byron
User 355448 Photo


Ambassador
3,144 posts

Byron,

Just located two more meta codes that might also work.

<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="-1" />

The first one I think is just another way of doing what I posted in the previous message. The second one tells the browser to reload cache each visit.
User 401662 Photo


Registered User
23 posts

ok... what should I try and where do I place them? I'm not familiar with this stuff. Should I put more that one of them in there?

I like your websites? So, you're a Christian? Did you see my site? www.SuzyAndByron.com

Byron
User 355448 Photo


Ambassador
3,144 posts

Byron,

The meta tags belong in the head section of your site. The code would look something like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Your site page</title><!-- displays at the top of the browser-->
<link rel="stylesheet" href="yoursite.css" type="text/css">
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
</head>
<body>
<1-- the rest of your site goes below here -->

I would try the meta tags one at a time and test them to see if they do what you want. Then test with a different browser, and see if you need to add one of the others to work with the other browser.

I have glanced at your site. Wish I had the ability to create things that look nice. I get my son and daughter-in-law to help me with the look and feel things. I tend to be technical and mechanical.
User 401662 Photo


Registered User
23 posts

Hello again Bill

Well... I tried a couple of the recommended codes, but to no avail. First, I tried...

<meta http-equiv="Cache-Control" content="no-cache" />

I incerted this by itself in the header of the Calendar Page. Then I tried...

<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="-1" />


Both were together. This is how it currently stands.

I seems that a refresh is an F5 function. Is there anyway of forcing an F5 as soon as the Calendar Page opens?

Please go to my Calendar Page again and tell me how many blue boxes you see when you first go to that page. If you only see one blue box, then hit refresh and it should change to 5 blue days.

Go to www.suzyandbyron.com and click the Calendar tab on the left.

Let me know what you see. And please let me know what i should try next.

Thanks a bunch!!
Byron

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.