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

Logitech strife - new webcam suggestions?

Hardware/software/hints and tips/discussion/webcam links etc
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Logitech strife - new webcam suggestions?

Post by beteljuice »

I typed:

Code: Select all

// imgsrc = "sky.jpg";
// should be
imgsrc = "images/sky.jpg";
So why have you changed the pic source to:
imgsrc = "/wx/images/sky.jpg";
Although that should still work given your directory structure ;)

BUT ..

Code: Select all

// tmp = new Date();
// tmp = "?" + tmp.getTime();
// document.images["image1"].src = imgsrc + tmp; 
You have now 'commented out' the bit that makes every image unique to a server / browser cache !

Hmm ... it's saying image1 is undefined.

Try taking the JavaScript out the <header> and put it just before the </body> tag.
Last edited by beteljuice on Wed 16 Feb 2011 1:27 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
fractonimbus
Posts: 159
Joined: Thu 03 Feb 2011 1:15 am
Weather Station: WH1091
Operating System: Windows 7 on a Dell Vostro
Location: Canberra

Re: Logitech strife - new webcam suggestions?

Post by fractonimbus »

Just trying to see if that made a difference. /wx/... is the full path from the server, so it shouldn't hurt.

I'm wondering if it could be that as the updated imageon the server has the same name, it is being sourced from cache by the browser and not being downloaded.

I think the original '?' code was intended as a cache breaker, but it didn't seem to work. Is using the "name" attribute in the img tag sufficient to identify the object for document.images("image1") ?

DN
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Logitech strife - new webcam suggestions?

Post by beteljuice »

Try taking the JavaScript out the <header> and put it just before the </body> tag.
... and put the cache buster back.

Edit: Temp link removed
Last edited by beteljuice on Wed 16 Feb 2011 3:39 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
fractonimbus
Posts: 159
Joined: Thu 03 Feb 2011 1:15 am
Weather Station: WH1091
Operating System: Windows 7 on a Dell Vostro
Location: Canberra

Re: Logitech strife - new webcam suggestions?

Post by fractonimbus »

OK, the cache-buster is back. But I was looking at my outgoing IP traffic while doing all this, and I saw no evidence of the browser sending a request to the server, so it seemed the javascript was not telling the browser to do anything and presumably it was not being called properly.

Then I looked at your frame code and saw that you had located the javascript after the image code in the body. And that it *was* calling the server.

I did the same, and now it's working. So it seems your suggestion to relocate the js was right on the button. Thank you sir, you are a scholar, gentleman and wizzard :-)

I need to get the polling delay fixed, but looks like the problem's solved. And I'm getting a rather nice moonlight image now, too!

DN
Post Reply