Unable to select with TableTools

Unable to select with TableTools

aramseyaramsey Posts: 1Questions: 0Answers: 0
edited November 2012 in TableTools
I'm not getting an 404's or JS errors. I'm unable to select rows.

[code]
$(document).ready(function() {
var selectedTypes = new Array();
$("input[name='type']:checked").each(function() {
selectedTypes.push($(this).val());
});

var selectedSubTypes = new Array();
$("input[name='sub_type']:checked").each(function() {
selectedSubTypes.push($(this).val());
});

var selectedColors = new Array();
$("input[name='mancost']:checked").each(function() {
selectedColors.push($(this).val());
});

var selectedSets = new Array();
$("input[name='set']:checked").each(function() {
selectedSets.push($(this).val());
});

$("#accordion").accordion( { "autoHeight": false } );

oTable = $('#table').dataTable({
"sDom": 'T<"clear">lfrtip',
"bProcessing": true,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"oTableTools": {
"sSwfPath": "../mtg/media/swf/copy_csv_xls_pdf.swf",
"sRowSelect": "multi",
"aButtons": []
},
"aoColumns": [
{ "sWidth": "40%" },
{ "bVisible": false },
{ "sWidth": "15%" },
{ "sWidth": "20%" },
{ "sWidth": "10%" },
{ "sWidth": "15%" }
],
"sAjaxSource": "deck_builder.pl?json=true&name="+form.name.value+"&type="+selectedTypes+"&sub_type="+selectedSubTypes+"&manacost="+selectedColors+"&text="+form.text.value+"&regex="+form.regex.value+"&set="+selectedSets+"&format="+form.format.value
});

$('#form').submit(function() {
var selectedTypes = new Array();
$("input[name='type']:checked").each(function() {
selectedTypes.push($(this).val());
});

var selectedSubTypes = new Array();
$("input[name='sub_type']:checked").each(function() {
selectedSubTypes.push($(this).val());
});

var selectedColors = new Array();
$("input[name='manacost']:checked").each(function() {
selectedColors.push($(this).val());
});

var selectedSets = new Array();
$("input[name='set']:checked").each(function() {
selectedSets.push($(this).val());
});

oTable.fnReloadAjax( "deck_builder.pl?json=true&name="+form.name.value+"&type="+selectedTypes+"&sub_type="+selectedSubTypes+"&manacost="+selectedColors+"&text="+form.text.value+"&regex="+form.regex.value+"&set="+selectedSets+"&format="+form.format.value );

return false;
});
});
[/code]
[code]

@import "../mtg/media/css/demo_page.css";
@import "../mtg/media/css/demo_table_jui.css";
@import "../mtg/media/css/jquery.dataTables.TableTools.css";
@import "../mtg/themes/smoothness/jquery-ui-1.8.4.custom.css";








[/code]
This discussion has been closed.