Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Trends Page Error

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

Trends Page Error

Post by 6719jason »

Dear Steve,

I am having trouble, getting the trends graph thumbnails to display on my webpage, would you be able to take a look at the webpage and let me know what I am doing wrong?

Regards

Jason

http://www.weeleyweatherstation.info
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Trends Page Error

Post by steve »

They seem to be there now?
Steve
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

Re: Trends Page Error

Post by 6719jason »

Thanks for quick reply Steve.

The problem I am having is, when I go to click on one of the thumbnails to view a larger view of the Trend Graph, It fails to display and an error message appears in a little box in the bottom left hand corner.

Regards

Jason
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Trends Page Error

Post by steve »

I think your problem is missing quotes on the changeImage() calls. Compare yours:

Code: Select all

<td class="td_thumbnails"><a onclick=changeImage("images/wind.png")><img src="images/windsm.png" alt="Wind Graph Thumbnail" width="150" height="100" border="0" /></a></td>
with mine:

Code: Select all

<td class="td_thumbnails"><a onclick='changeImage("images/wind.png")'><img src="images/windsm.png" alt="Wind Graph Thumbnail" width="150" height="100" border="0" /></a></td>
Steve
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

Re: Trends Page Error

Post by 6719jason »

Right, I have changed the code as you suggested. Still not working correctly so, I have attached my TrendT.htm page.

Regards

Jason
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Trends Page Error

Post by steve »

You still haven't got quotes around the changeImage calls.
Steve
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

Re: Trends Page Error

Post by 6719jason »

I have now put the Quotes in as required and still no joy.

Regards

Jason
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Trends Page Error

Post by steve »

You've got a closing bracket missing:

Code: Select all

<script type="text/javascript">
function changeImage(im) {
	document.images["graphs"].src = im + "?" + new Date().getTime();
</script>
Should be:

Code: Select all

<script type="text/javascript">
function changeImage(im) {
	document.images["graphs"].src = im + "?" + new Date().getTime();
}
</script>
Steve
6719jason
Posts: 519
Joined: Wed 08 Apr 2009 12:38 pm
Weather Station: La-Crosse WS3502
Operating System: Windows 7
Location: Holland On Sea, Essex UK

Re: Trends Page Error

Post by 6719jason »

Thanks Steve, working correctly now. Many Thanks.

Jason
Post Reply