0

I want to make a gadget that loads another page in an interval.

In IE 10 everything is working well, but as a gadget it does not work. Does anyone know where the problem is coming from?

<div class="obsah" id="obsah">
</div>
<script type='text/javascript' >
setInterval(obsah.innerHTML='<object type="text/html" data="obsah.html"></object>', 5000);
</script>
JimTheDev
  • 3,469
  • 1
  • 23
  • 26
  • Could you briefly explain what you mean with "it does not work"? – Clijsters May 05 '16 at 19:09
  • Nothing is displayed in div "obsah". When i open page in IE 10, then "obsah" is filled with the contents of page obsah.html. – Martin Boleslav May 06 '16 at 09:05
  • Try to replace `obsah.InnerHTML` with `document.getElementById("obsah").InnerHTML`. Is `` a valid tag for desktop gadgets? – Clijsters May 06 '16 at 09:38
  • I tried it before, but it also does not work. I dont know if is a valid tag for desktop gadgets and I do not know where to find out, is somewhere some documentation about gadgets? – Martin Boleslav May 06 '16 at 09:59

0 Answers0