title: Excel to HTML table
body: <p>I'm new to web programming and the first project that i'm working on is a web site that allows the user to see information from an Excel file (which is updated daily). I started from converting the Excel file to JSON with the help of a Youtube tutorial and this library <a href="https://github.com/SheetJS/js-xlsx" rel="nofollow noreferrer">https://github.com/SheetJS/js-xlsx</a>.</p>
  
  <p>I have the information that i want converted to objects but I don't know how to use it to show a table in a website. Any suggestions?</p>
  
  <p>This is my current code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/* set up XMLHttpRequest */
    var url = "Teste.xlsx";
    var oReq = new XMLHttpRequest();
    oReq.open("GET", url, true);
    oReq.responseType = "arraybuffer";
  
    oReq.onload = function(e) {
      var arraybuffer = oReq.response;
  
      /* convert data to binary string */
      var data = new Uint8Array(arraybuffer);
      var arr = new Array();
      for (var i = 0; i != data.length; ++i) arr[i] = String.fromCharCode(data[i]);
      var bstr = arr.join("");
  
      /* Call XLSX */
      var workbook = XLSX.read(bstr, {
        type: "binary"
      });
  
      /* DO SOMETHING WITH workbook HERE */
      var first_sheet_name = workbook.SheetNames[0];
      //var address_of_cell = 'A1';
      /* Get worksheet */
      var worksheet = workbook.Sheets[first_sheet_name];
      XLSX.utils.sheet_to_json(worksheet);
  
    }
  
    oReq.send();</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;!doctype html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
    &lt;title&gt;Test&lt;/title&gt;
    &lt;script src="xlsx.full.min.js"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>