I have http://communitychessclub.com/examine_T3.php, a dataTable list of chess games. I previously able to able to click a row and the game score would pop up, but I switched the data source to js and it doesn't work now. Can anyone tell me what to change?
game.js begins with: var dataSet = [
This is the html js code for the web page:
<script>
//<?php include('assets/games.js'); echo ";"; ?>
$(document).ready(function() {
$('#cccr').DataTable( {
Is this next line the bad code?
"createdRow": function(row, data, index) {$(row).attr('game', data.game);},
"search": {"search": "<?php echo ($_GET['player']); ?>"},
} );
Is this next line the erroneous code?
$("#cccr").on("click", "tbody tr", function() {
window.location.href = 'basic.php?game='+$(this).attr('game');
} );
} );
</script>