- <script>
- function refreshData() {
- var url = "/pulldata.php?p=" + tags + "&s=" + statistic + "";
- $.getJSON( url,
- function(data){
- for ( pid in data ) {
- for ( statistic_id in data[pid] ) {
- console.log( data[pid][statistic_id] );
- drawLineOnGraph( data[pid][statistic_id] );
- }
- }
- } );
- </script>
- <script type="text/javascript">
- $('input[type=checkbox]').live( 'click', refreshData );
- </script>