whoami 26 Posted September 20, 2013 Report Share Posted September 20, 2013 Hello guys..I am wondering if I can grab data on a table, and then process it maybe with the PHP Plugin from TJ to graph it on a Load HTML event dropping many statistics about that.How can I query data on Table inside a load HTML?Hope we can have a discussion together so we can learn how to play with data like that.I think is going to be the future of Ubot. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted September 20, 2013 Report Share Posted September 20, 2013 You might be better off doing it inside of the ui html panel. That way you don't need to have a browser at all and the ui html panel will update automatically instead of having to refresh the load html. You can get all your HTML into a variable and have it display via <span variable="#html" fillwith="innerhtml"></span> or change span to div or whatever else you want to use. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted September 20, 2013 Report Share Posted September 20, 2013 load html("<html> <head> <script type=\"text/javascript\" src=\"https://www.google.com/jsapi\"></script> <script type=\"text/javascript\"> google.load(\"visualization\", \"1\", \{packages:[\"corechart\"]\}); google.setOnLoadCallback(drawChart); function drawChart() \{ var data = google.visualization.arrayToDataTable([ [\'Year\', \'Sales\', \'Expenses\], [\'2004\', 1000, 400], [\'2005\', 1170, 460], [\'2006\', 660, 1120], [\'2007\', 1030, 540] ]); var options = \{ title: \'Company Performance\' \}; var chart = new google.visualization.LineChart(document.getElementById(\'chart_div\')); chart.draw(data, options); \} </script> </head> <body> <div id=\"chart_div\" style=\"width: 900px; height: 500px;\"></div> </body></html>") This from https://developers.google.com/chart/interactive/docs/gallery/linechart https://developers.google.com/chart/ main page Have fun!!! 1 Quote Link to post Share on other sites
whoami 26 Posted September 20, 2013 Author Report Share Posted September 20, 2013 Traffik Cop!You are the man!!Thanks a lot! 1 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted September 21, 2013 Report Share Posted September 21, 2013 No!You the man!! haha I forgot about this a while ago,then saw this post and you reminded me. So really, thank you! Quote Link to post Share on other sites
whoami 26 Posted November 5, 2013 Author Report Share Posted November 5, 2013 Hey Traffic Cop..Big question again..Can I use a table to graph it with this API? Quote Link to post Share on other sites
k1lv9h 76 Posted November 5, 2013 Report Share Posted November 5, 2013 Hi, Can I use a table to graph it with this API? Yes. You can.Provided you format the table data in API format.Ex. [\'Year\', \'Sales\', \'Expenses\'], [\'2004\', 1000, 400], [\'2005\', 1170, 460], [\'2006\', 660, 1120], [\'2007\', 1030, 540]Kevin Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.