title: I can not get an image of the URL found with XmlHttpRequest
body: <p>Im trying to get a image url through XmlHttpRequest and use it like 'src' attribute of a 'img' tag. That is my plan:</p>
  
  <pre><code>function populaLista() {
  
  var ourRequest = new XMLHttpRequest();
  ourRequest.open('GET', 'http://localhost:8080/artes');
  
  ourRequest.onload = function() {
      var ourData = ourRequest.responseText.toString();
      var jsonResposta = JSON.parse(ourData);
  
      if (ourData.length &gt; 0) {
  
          document.getElementById("paragrafo1").innerHTML = jsonResposta.url;
  
          var tabela = document.createElement("TABLE");
          var corpoTabela = document.createElement("TBODY");
          var tr = document.createElement("TR");
          var td = document.createElement("TD");
          var imagem = document.createElement("IMG");
          var urlImg = document.createTextNode(jsonResposta.url).toString();
      //  var urlImg = "https://mir-s3-cdn-cf.behance.net/projects/202/6310ed61231533.Y3JvcCwyNjM1LDIwNjIsMjI3LDA.jpg";
  
          document.getElementById("paragrafo").innerHTML = typeof urlImg;
  
          imagem.setAttribute("src",urlImg);
          td.appendChild(imagem);
          tr.appendChild(td);
          corpoTabela.appendChild(tr);
          tabela.appendChild(corpoTabela);
  
          document.getElementById("tabeladeImagens").appendChild(tabela);
  
      } else {
          document.getElementById("paragrafo").innerHTML = "item não encontrado";
      }
  
  };
  ourRequest.send();
  </code></pre>
  
  <p>The problem is: when I use the result of my request on my img tag, I can't see the image, but if I use the same url in a string var that I created I can see normally.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="ISO-8859-1"&gt;
  
  &lt;/head&gt;
  &lt;body onload="populaLista()"&gt;
  
      &lt;p id="paragrafo"&gt;&lt;/p&gt;
      &lt;p id="paragrafo1"&gt;&lt;/p&gt;
  
      &lt;div id="tabeladeImagens" class="logoHome"&gt;&lt;/div&gt;
  
      &lt;script src="main.js"&gt;&lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The json response:</p>
  
  <pre><code>{id : 38, url : "//mir-s3-cdn-cf.behance.net/projects/202/6310ed61231533.Y3JvcCwyNjM1LDIwNjIsMjI3LDA.jpg"}
  </code></pre>