Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Stivan Radev
Stivan Radev
1,475 Points

Refresh cam on website

So I have a question about webcams URLs. So whenever I get the link of a webcam and then I open the link it shows me a picture of the webcam. Now when I refresh that link it shows me a different frame of that webcam. Basically, it's a live webcam and each time I open that link it shows different frames. My question is: Is there a way that I can refresh that link via Javascript or HTML without it flicker or refresh the whole page. I just want to keep refreshing the link so it creates this "Live Cam".

Thanks.

1 Answer

Balazs Peak
Balazs Peak
46,160 Points

You can do this with AJAX. Check out the AJAX Basics course here on Treehouse.

Stivan Radev
Stivan Radev
1,475 Points

Thanks, I will definitely try this out!