title: HTML Table to JSON from another URL
body: <p>Hey guys i am using this <code>lib</code> to convert <code>html</code> table to <code>json array</code>.</p>
  
  <p><a href="http://lightswitch05.github.io/table-to-json/" rel="nofollow">http://lightswitch05.github.io/table-to-json/</a></p>
  
  <p>With this my table is transformed into many objects and it shows it in the chrome console.</p>
  
  <p>It works when i am on the same page as the table but i want to get the <code>json</code> onto another page. Initially i did this to target my element and get it to transform it but no luck any ideas?</p>
  
  <pre><code>$.get("http://support.jonar.com/support/default.asp?W2305", function(data) {
      var table_csv = $("table.testtable").html(data); //this gives me the entire html doc
      console.log(table_csv);
      var myjson = $(table_csv).tableToJSON();
  });
  </code></pre>
  
  <p>This returns the whole document.. for <code>table_csv</code>. Also when i store the html <code>&lt;table&gt;&lt;/table&gt;</code> into a variable and i run <code>$(table_csv).tableToJSON();</code> i get an empty value i only see <code>[]</code></p>
  
  <p>Thanks guys!</p>