Error by "Date (dd . mm[ . YYYY])" + "bStateSave"

Error by "Date (dd . mm[ . YYYY])" + "bStateSave"

spacemonkeyspacemonkey Posts: 2Questions: 0Answers: 0
edited October 2012 in General
Hello,

If i try to use "Date (dd . mm[ . YYYY])" together with "bStateSave" a get the following javascript error when i return to the page:

TypeError: oSort[(sDataType ? sDataType : "string") + "-" + aaSort[k][1]] is not a function

I created a test page under http://www.nullmodem.ch/datatables.html. To get the error message:

- Sort the Table by "Date (DD.MM.YYYY)"
- Klick on "link to other site"
- Klick on "back to datatables"

If i sort by "Name" then i get no error.

Is there an error in my code or is there a problem with DataTables or the "Date (dd . mm[ . YYYY])" example?

Thanks.

Replies

  • spacemonkeyspacemonkey Posts: 2Questions: 0Answers: 0
    Ok, i solved it:
    the "jQuery.extend(jQuery.fn.dataTableExt.oSort, {[...]}" must be written before "$(document).ready(function () {[...]}"
This discussion has been closed.