Jump to content

Frank900

Members
  • Posts

    1
  • Joined

  • Last visited

Frank900's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi I have created a web page to control my Arduino. Because I have to constantly update the temperature I put the display it in a frame. THE problem is that I should update only the frame containing the temperature display is not the whole page. I with sketches on the network are able to update the whole page always but I only require updating of that specific frame. It's possible? I used this but it does not work: <!DOCTYPE html> <html> <body> <!-- VISUALIZZARE LA TEMP --> <div id="txt"></div> <!-- pagina principale --> <script> t = setTimeout(function(){ addCode(); }, 1000); function addCode() { ifrm = document.createElement("IFRAME"); ifrm.setAttribute("src", "http://192.168.1.24/arduino/termo); ifrm.style.width = 400+"px"; ifrm.style.height = 200+"px"; document.getElementById("txt").innerHTML = ''; document.getElementById("txt").appendChild(ifrm); } </script>
×
×
  • Create New...