javascript - jQuery DataTables getting hidden column data -


i have 1 table have 2 columns hidden datatables api. when delete row table need pass data in these columns via ajax gets removed database well..

i have been deleting rows prior didn't have data need in them directly, without issue. need change need , catch values. problem no matter how have tried spin 1 thing or breaks.

delete_row = $(this).closest("tr").get(0); 

this used catch row want delete pass along when confirmation of deleting row made. , works fine. need match logic in creating 2 new vars can read if confirmation made pass through ajax call.

which have tried:

var apos  = throttletable.fngetposition($('td:eq(0)', delete_row)); var adata = throttletable.fngetdata(apos[0]); 

along few different spins catch column want data from. above breaks script altogether. thought came

var apos  = throttletable.fngetposition(throttle_delete_row); var adata = throttletable.fngetdata(apos[0]); 

which work in returning every column in row string. isn't desired. run loop on problematic loop can expensive, , there no distinct method of splitting data up, 1 of values in 1 of hidden columns csv in of itself. loop invalid need there if split , delimited ,

so ultimate question is, how can break down column specific?

well, alright then. apparently problem was attempting when needed fngetdata() bit.

turns out after playing around whats going on , dumping console.log() able sort out needed throttletable.fngetdata(throttle_delete_row, 0) sake of example, hidden column(s) seek.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -