4 tables sort doesnt work

4 tables sort doesnt work

pg_lheltonpg_lhelton Posts: 8Questions: 0Answers: 0
edited June 2012 in General
I have for tables on one page and when the user clicks the sort arrows on one table all of the elements from that table are added to the others. any idea why this is happening? i dont want the tables related at all.

here is my code: the ids match the tables (i am currently only displaying 4 tables)

[code]

$(document).ready(function() {
$(function() {
$( "#userName" )
.button()
.click(function() {
window.open('./project.jsp','_self',false);
})
.next()
.button()
.click(function() {
logOut();
})
.parent()
.buttonset();
});

$(function() {
$( "#logInBtn" )
.button()
.click(function() {
window.open('./login.jsp','_self',false);
});
});

var acTable = $('#actcreatetable').dataTable({
"bAutoWidth" : true,
"iDisplayLength" : 10,
"bFilter" : false,
"bLengthChange" : false
});

$(window).bind('resize', function() {
acTable.fnAdjustColumnSizing();
});
var auTable = $('#actupdatetable').dataTable({
"bAutoWidth" : true,
"iDisplayLength" : 10,
"bFilter" : false,
"bLengthChange" : false
});


$(window).bind('resize', function() {
auTable.fnAdjustColumnSizing();
});


var operTable = $('#operationSAPTable').dataTable({
"bAutoWidth" : true,
"iDisplayLength" : 10,
"bFilter" : false,
"bLengthChange" : false
});

$(window).bind('resize', function() {
operTable.fnAdjustColumnSizing();
});

var activTable = $('#activityPrimaTable').dataTable({
"bAutoWidth" : true,
"iDisplayLength" : 10,
"bFilter" : false,
"bLengthChange" : false
});

$(window).bind('resize', function() {
activTable.fnAdjustColumnSizing();
});

var rcTable = $('#rescreatetable').dataTable({
"bAutoWidth" : true,
"iDisplayLength" : 10,
"bFilter" : false,
"bLengthChange" : false
});

$(window).bind('resize', function() {
rcTable.fnAdjustColumnSizing();
});

var ascTable = $('#assigncreatetable').dataTable({
"bAutoWidth" : true,
"iDisplayLength" : 10,
"bFilter" : false,
"bLengthChange" : false
});

$(window).bind('resize', function() {
ascTable.fnAdjustColumnSizing();
});

var primaTable = $('#primaveraTable').dataTable({
"bAutoWidth" : true,
"iDisplayLength" : 10,
"bFilter" : false,
"bLengthChange" : false
});

$(window).bind('resize', function() {
primaTable.fnAdjustColumnSizing();
});

var sapTable = $('#sapTable').dataTable({
"bAutoWidth" : true,
"iDisplayLength" : 10,
"bFilter" : false,
"bLengthChange" : false
});

$(window).bind('resize', function() {
sapTable.fnAdjustColumnSizing();
});
});

function logOut() {
$("#logOutForm").submit();
}

[/code]

thanks for your help!
This discussion has been closed.