Backbone and datatables

Backbone and datatables

mwagner72mwagner72 Posts: 5Questions: 0Answers: 0
edited February 2012 in General
I have a jsfiddle here:

var Chapter = Backbone.Model;
var chapters = new Backbone.Collection();

chapters.add(new Chapter({ page: 9, title: "The End" }));
chapters.add(new Chapter({ page: 5, title: "The Middle" }));
chapters.add(new Chapter({ page: 1, title: "The Beginning" }));

"aoColumns": [
{"sTitle": "Title", "mDataProp": "title"},
{"sTitle": "Page #","mDataProp": "page"}],
sAjaxSource: "",
sAjaxDataProp: "",
fnServerData: function(sSource, aoData, fnCallback) {
console.log('here we go');

Doing this I have the dataTable linked up to my collection, but how do I tell it to refresh against the Server Data?


  • allanallan Posts: 46,545Questions: 1Answers: 6,495 Site admin will do a refresh using fnServerData. Not its indented purpose, but that should work!

  • mwagner72mwagner72 Posts: 5Questions: 0Answers: 0
    That works Great!!!! Thanks SOOOOOO Much!

    I have updated my jsfiddle:
This discussion has been closed.