Bug in 1.9.4 with AJAX data source?

Bug in 1.9.4 with AJAX data source?

kpesankakpesanka Posts: 1Questions: 0Answers: 0
edited September 2012 in DataTables 1.9
To be fair, I just started using DataTables - the first I've worked with it was after 1.9.4 was released.

I have been banging my head on why I'd been getting the following javascript alert:

[quote]DataTables warning "Requested unknown parameter '0'" from the data source for row 0[/quote]

I know that my JSON is valid, and I'd correctly initialized my DataTables table. I even copied the JS and JSON from here: http://datatables.net/release-datatables/examples/ajax/objects.html and I STILL had the same issue.

So I ran a git bisect and found that prior to commit 36076fc, everything worked fine. When I checked out 36076fc, everything broke.

I see that based on the commit notes, this commit involved removing a deprecated feature related to reordering columns. Now that I'm working directly from the Git repo, I'm actually seeing a JS error:

[quote]Uncaught ReferenceError: _fnReOrderIndex is not defined.[/quote]

Should the following line have been removed from the oAPI object in media/js/jquery.dataTables.js?

[code]"_fnReOrderIndex": _fnReOrderIndex,[/code]

When I remove that line from the 36076fc commit, everything works fine again, which is odd, because I was receiving no JS error when I downloaded 1.9.4, only the warning mentioned earlier in this post.. I guess something else changed between 1.9.4 and 36076fc.

Replies

  • allanallan Posts: 63,395Questions: 1Answers: 10,451 Site admin
    This isn't a bug in 1.9.4 but rather an issue that I temporarily introduced (by mistake) while working on the 1.10 development (now fixed).

    If you are going to live on the bleeding edge and use the development versions, you'll get cut now and then :-).

    If you want a stable version to work with, I'd suggest you use the 1.9.4 release versions. That's what the releases are for after all! :-)

    Allan
  • dalli_29dalli_29 Posts: 3Questions: 0Answers: 0
    edited October 2012
    q
This discussion has been closed.