Error by "Date (dd . mm[ . YYYY])" + "bStateSave"
Error by "Date (dd . mm[ . YYYY])" + "bStateSave"
spacemonkey
Posts: 2Questions: 0Answers: 0
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.
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.
This discussion has been closed.
Replies
the "jQuery.extend(jQuery.fn.dataTableExt.oSort, {[...]}" must be written before "$(document).ready(function () {[...]}"