Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 0.45 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <script>
  2.    function refreshData() {
  3.    var url = "/pulldata.php?p=" + tags + "&s=" + statistic + "";
  4.    $.getJSON( url,
  5.    function(data){
  6.      for ( pid in data ) {
  7.        for ( statistic_id in data[pid] ) {
  8.          console.log( data[pid][statistic_id] );
  9.          drawLineOnGraph( data[pid][statistic_id] );
  10.        }
  11.     }
  12.    } );
  13. </script>
  14. <script type="text/javascript">
  15. $('input[type=checkbox]').live( 'click', refreshData );
  16. </script>