Update of Ajax data in the client end.

Update of Ajax data in the client end.

hh1985hh1985 Posts: 1Questions: 1Answers: 0

Hi,

I am working on a d3 project and try to combine d3 with datatables. The data source is around ~20K rows and 130 columns (I only render 6 columns in datatables). My original idea was to let user select data points on the SVG canvas, clear table and use rows.add() to update the data. This was slow, especially when the size of the selected data jumped from a small number to a large number.

I cannot get database support from the server, so I use a javascript database called NeDB, and connect datatables to it using Ajax. I found a good example here using Ajax function:
http://datatables.net/release-datatables/extensions/Scroller/examples/server-side_processing.html

I need figure out a way to dynamically feed ajax callback function with new data. ajax.reload seems not work since it uses information from ajax.url. The last choice may be to delete the table and create a new one, but I am just wondering if there is any better way.

Thanks a lot!

This discussion has been closed.