reading data

reading data

sifuhallsifuhall Posts: 20Questions: 0Answers: 0
edited March 2010 in General
I have a table (populated via ajax) that contains 1 column, with a static header and a single value.

I need to be able to determine that value in javascript after the data has loaded (or been refreshed) and if the value is higher than a certain amount I need to enable or disable other elements of the page.

I can do all the rest (enabling, disabling, refreshing the table, etc) but how can I determine the value of the column after data load or refresh?

Here is my table:

[code]



Gym Points





[/code]

And here is my init code in the ready function:

[code]
gTable = $('#gpoints').dataTable( {
"bProcessing": false,
"sAjaxSource": '/ajax.php?action=get_gpoints',
//"bLengthChange": false,
"bSort" : false,
"bPaginate" : false,
"bAutoWidth" : true,
"bFilter" : false,
"bStateSave" : true,
"bInfo" : false,
"aoColumns": [ { "sClass": "resource" } ]
} )
[/code]
This discussion has been closed.