Webcam problems (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


Guest -> Webcam problems (7/14/2001 20:16:00)

Hi
Im just experimenting with a webcam at the moment and I'm having a problem with the code Im using.

If anyone out there understands Javascript then I'd be really gratefull if you could take a look at:

http://members.nbci.com/officejunk/cam.htm

It displays a picture but as soon as the countdown reaches zero and the page is supposed to refresh I get and error in the bottom left corner of the status bar.

Can anyone make any suggestions?

Many thanks!






Thomas Brunt -> RE: Webcam problems (7/16/2001 15:42:00)

Dont' know the fix, but the problem seems to be here in the code.

var camImg = "http://members.nbci.com/_XMCM/officejunk/Ojwebcam.jpg" + "?" + now.getTime();
document.campicture.src = camImg;

I don't see why you would need all that. Don't you just want the page to reload when the timer goes off?

The image path is always going to be the same, I would think.





Guest -> RE: Webcam problems (7/17/2001 20:33:00)

Hi Thomas

All I want is the image to refresh, not the entire page. Can anyone point me in the right direction (I'm not fussed about countdown timers etc). I'm really struggling to find the code.

Thanks for your help!





Thomas Brunt -> RE: Webcam problems (7/18/2001 20:54:00)

But refreshing the page will refresh the image.

You might want to go searching for a scripting forum or a new script if refreshing the entire page is unacceptable.





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625