mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
02_RSS: replaced refresh method by javascript DOM gymnastics
git-svn-id: https://svn.fhem.de/fhem/trunk@8940 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ec57d73afe
commit
0026b55d3a
9
fhem/www/pgm2/RSS.js
Normal file
9
fhem/www/pgm2/RSS.js
Normal file
@ -0,0 +1,9 @@
|
||||
// reload image with id
|
||||
function reloadImage(id) {
|
||||
// we use a dummy query to trick the browser into reloading the image
|
||||
var d = new Date();
|
||||
var q = '?t=' + d.getTime();
|
||||
var image = document.getElementById(id);
|
||||
var url = image.getAttribute('src');
|
||||
image.setAttribute('src', url.replace(/\?.*/,'') + q );
|
||||
}
|
Loading…
Reference in New Issue
Block a user