Closed martin-sweeny closed 8 years ago
I have a dataset that I want to load, but is not appearing.
It is a JSON file with nearly 500 records. I'm wrapping it in a $.get() call, which fetches the data fine. Upon success, I want to pass it to dynatable:
$.get()
dynatable
$.get('assets/data.json').success(function (response) { __self.records = response; __self.$container.dynatable({ records: { dataset : __self.records } }); });
Problem is that it then shows me 0 records. Any ideas how I can debug or resolve this?
Wow I wasn't paying attention at all. It's dataset: { records: __self.records } ... Closing shamefully..
dataset: { records: __self.records }
I have a dataset that I want to load, but is not appearing.
It is a JSON file with nearly 500 records. I'm wrapping it in a
$.get()
call, which fetches the data fine. Upon success, I want to pass it todynatable
:Problem is that it then shows me 0 records. Any ideas how I can debug or resolve this?