Hey guys i am using this lib to convert html table to json array.
http://lightswitch05.github.io/table-to-json/
With this my table is transformed into many objects and it shows it in the chrome console.
It works when i am on the same page as the table but i want to get the json onto another page. Initially i did this to target my element and get it to transform it but no luck any ideas?
$.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();
});
This returns the whole document.. for table_csv. Also when i store the html <table></table> into a variable and i run $(table_csv).tableToJSON(); i get an empty value i only see []
Thanks guys!