What kind of Ajax? Server-side processing, or loading a JSON file and processing on the client-side?
There isn't an 'easy' one liner for either solution I'm afraid - as swapping between data sources isn't really something that's supported. Having said that, it is possible. What you can do is after the table has initialised is to access the settings object (fnSettings) and set oFeatures.bServerSide for server-side processing. With the JSON file, it is probably easiest just to use fnReloadAjax ( http://datatables.net/plug-ins/api#fnReloadAjax ).
Replies
There isn't an 'easy' one liner for either solution I'm afraid - as swapping between data sources isn't really something that's supported. Having said that, it is possible. What you can do is after the table has initialised is to access the settings object (fnSettings) and set oFeatures.bServerSide for server-side processing. With the JSON file, it is probably easiest just to use fnReloadAjax ( http://datatables.net/plug-ins/api#fnReloadAjax ).
Allan