Support for Webcam Images
3 years 11 months ago #59502
by vauwe
Support for Webcam Images was created by vauwe
Hi CEd,
I'd like to display the picture of a webcam using the "Single Image" widget.
Is there a way to force the browser to load the image from the server rather than from the local cache anytime the page is loaded?
Any recommendation ?
Many thanks,
Volker
I'd like to display the picture of a webcam using the "Single Image" widget.
Is there a way to force the browser to load the image from the server rather than from the local cache anytime the page is loaded?
Any recommendation ?
Many thanks,
Volker
Please Log in or Create an account to join the conversation.
3 years 11 months ago #59503
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Support for Webcam Images
Hi
I don't think that your request is related to Page Builder CK, because it does not manage the cache of your browser / server
CEd
I don't think that your request is related to Page Builder CK, because it does not manage the cache of your browser / server
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
3 years 11 months ago #59506
by vauwe
Replied by vauwe on topic Support for Webcam Images
Hi CEd,
thank you for your fast reply !
I mean I'm using Page Builder to create the home page for my site. And in there I'd like to display the image of a webcam, which is refreshed every 5 minutes (by overwriting the image with the same name on the server) . I'm using your default "Single IMage" widget to display this picture.
Now, when I'm opening the webpage, usually not the most current image is displayed, but an older one, which the browser loads from the local cache. If I want to see the most current picture, I have to hit F5 to refresh the page. My question was, whether you see a way, to force loading this picture from the server any time (i.e. by some additional java script; there are a few samples on the internet).
Thanks,
Volker
thank you for your fast reply !
I mean I'm using Page Builder to create the home page for my site. And in there I'd like to display the image of a webcam, which is refreshed every 5 minutes (by overwriting the image with the same name on the server) . I'm using your default "Single IMage" widget to display this picture.
Now, when I'm opening the webpage, usually not the most current image is displayed, but an older one, which the browser loads from the local cache. If I want to see the most current picture, I have to hit F5 to refresh the page. My question was, whether you see a way, to force loading this picture from the server any time (i.e. by some additional java script; there are a few samples on the internet).
Thanks,
Volker
Please Log in or Create an account to join the conversation.
3 years 11 months ago #59507
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Support for Webcam Images
the answer : no, I don't see a way to do that
the fact is that your request is totally not related to Page Builder CK, even if you are using the image addon to load it. It creates an html code to render your image in the browser. Do you understand what I mean ?
there is no feature for that in Page Builder CK
Now, may be that I have an idea : in the url you shall add a variable , this way your browser see it as a new image each time
You can do that using the "code" addon in Page Builder CK, and put your image code there
Example :
You will need to adapt the image path
the fact is that your request is totally not related to Page Builder CK, even if you are using the image addon to load it. It creates an html code to render your image in the browser. Do you understand what I mean ?
there is no feature for that in Page Builder CK
Now, may be that I have an idea : in the url you shall add a variable , this way your browser see it as a new image each time
You can do that using the "code" addon in Page Builder CK, and put your image code there
Example :
Code:
<!ck-php
$imgtime = substr((int)microtime(true), 4);
php-!ck>
<img src="/images/pagebuilderck/ble_r055.jpg?ver=<!ck-php echo $imgtime; php-!ck>" data-src="/images/pagebuilderck/ble_r055.jpg?ver=<!ck-php echo $imgtime; php-!ck>">
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
3 years 11 months ago #59508
by vauwe
Replied by vauwe on topic Support for Webcam Images
Hi CEd,
I need to apologize; I'm not a real web expert. So I may ask stupid questions sometimes
I'll give your suggestion a try, it sounds promising !
Thank you,
Volker
I need to apologize; I'm not a real web expert. So I may ask stupid questions sometimes
I'll give your suggestion a try, it sounds promising !
Thank you,
Volker
Please Log in or Create an account to join the conversation.
Time to create page: 0.202 seconds