Weather by You!
Templates and Projects support => Html Templates => Topic started by: avoorpool on July 22, 2012, 12:27:54 PM
-
Hi Jacques,
SInce a few days I have an annoying problem with the display of graphs in Weather Blues.
It started with a delayed display in Cumulus, which caused me to look into the trends.htm file. Messed up the original with a wrond extension (trends.html) so the entire page did not display.
Steve gave me the correct hint, and the page displays normal again.
However, there now is an issue with the update of the graph images in Wather Blues (see attachments).
Before I start complaining with iPage (web server) I would like to know your expertise and technical knowledge WHAT issue could caus the problem. Inshort:
[trends.htm] upload to server: OK (every 10 mins)
[.png images] upload to server: OK (every 10 mins)
[Graphs] page display on server: OK (time stamp correct according 10 min upload)
Cumulus/View/Graphs display: OK (correct time stamp)
Graphs display in altonaweather.ca: NOT OK (time display is often 2 hours behind).
After numerous times F5 (refresh) the graphs finally display with a correct time stamp.
Any idea??
Incase it might have to do with the server (iPage) what could be the technical explanation I can use to explain to them??
Thanks,
Arthur
-
Hi Arthur,
Your problem seems to be a local cache problem.
In internet explorer, keys are:
F5 : Refresh display (screen refresh!)
CTRL-F5 : Refresh from server, even if timestamps are the same.
An other thing you can do, is pressing F12, to call devloppement tools,
there is a menu "cache" to desactivate it, to be more then sure! ;)
Hope this help,
Jacques
-
Hi Jacques,
Thanks!!
I thought so, since all .png graph images are correctly uploaded to the server a wellas the [trends.htm] file.
Since I also had a Cumulus Graph problem (on the 12-hour x-axis, the graph started halfway) I asked Steve about this, and he mentioned that the 'standard' cumulus has the following line included:
<script type="text/javascript">function changeImage(im) { document.images["graphs"].src = im + "?" + new Date().getTime();}</script>
Is this something to add to the html file??
Also, I will give iPage a call, since I never had this problem with 000webhost.com....!!!
Cheers,
Arthur
-
Hi Arthur,
<script type="text/javascript">function changeImage(im) { document.images["graphs"].src = im + "?" + new Date().getTime();}</script>
Is this something to add to the html file??
No! Since that apply to "Standard Cumulus" template, Weather Blues use instead
ad-gallery (jQuery) library to display it.
Jacques
-
Hi Jacques,
I followed your advice and used F12 which solved the problem (graphs displayed with correct time stamp.
However, not for long..........
Is this somethingI have to do, or can this be set automatically at the server side.
(I don't want visitors to see a graph from 9:00am displayed in the updated [graphs] page at 13:00pm....
(Haven't talked to iPage yet)
Thanks,
Arthur
-
Hi Arthur,
The problem??? You're allways on his back!! No time to refresh!! :lol:
But seriously, you've pointing an error, all page with "dynamic" data should have
mechanism to force refresh (a must in html!). Just add those meta:
<meta http-equiv="expires" content="Fri, 30 Dec 2011 12:00:00 GMT" />
By this, you let a date in the past, then it is always to refresh for browser
<meta http-equiv="Pragma" content="no-cache" />
Also that one talk to the cache directly
Regards,
Jacques
Ps. You're a good "tester", after more than 400 downloads no one has found that one!! :D
-
Hi Jacques,
Thanks for your reply:
<meta http-equiv="expires" content="Fri, 30 Dec 2011 12:00:00 GMT" />
By this, you let a date in the past, then it is always to refresh for browser
<meta http-equiv="Pragma" content="no-cache" />
Not to mess up my page, which of the 2 "meta" do I install and where do I enter this??
Do I change the date till today??
I'm just off the phone with iPage, and their statement is that when you upload an image, the browser keeps that for future display even when there is a dynamic upload every 10 mins.....
I never have seen this problem with the previous (free) webhost (000webhost.com)
Hopefully this will solve the problem???
Thanks,
Arthur
-
Yes Arthur,
You install both lines, in the head section, where others are. You could place them
just after the meta charset=
I plan in the future to play with expire, as every and each part of a page have
en expire, but it's for low band users... I planned too to raise WAI level for blinds,
Now I'm at normal minimum compilance.
But, too much poeple are waiting for v2... I don't plan to complicate things...
and report launch!
Regards,
Jacques
-
Hi Jacques,
Oops....
The "testers-test".........failed..!! :shock:
Installed both lines, and after 1 1/2 hours, the graphs were still at the same time stamp as before (even after I cleaned cache).
Did some google-ing and found the problem with same suggestion as yours. (slightly different <meta>)
http://www.v7n.com/forums/web-design-lo ... cally.html (http://www.v7n.com/forums/web-design-lobby/77608-how-empty-cache-automatically.html)
tried both solutions, but problem not solved....
So questions remain:
- I don't see this in other Weather Blues sites, could this be an iPage issue (different structure), since I've never had this problem with 000webhost.com
- Do I have to enter either <meta> string in EACH html file (page), or just in the [trends]
- Is there another solution (maybe within html file) to solve this problem??
Thanks,
Arthur