DataTables with jQuery 1.4
DataTables with jQuery 1.4
jayendrank
Posts: 2Questions: 0Answers: 0
Does anyone have any issues using DataTables with jQuery 1.4?
This discussion has been closed.
Replies
Anyone who is using DataTables 1.6.0 is likely using it with jQuery 1.4 as it comes with it by default. Passes all my unit tests without any problems, and I've not encountered anything else that could be attributed to switching to jQuery 1.4.
Regards,
Allan
[code]
$('#phonebook').dataTable({
"iDisplayLength": 25,
"sDom": '<"top"fl<"clear">>rt<"bottom"ip<"clear">',
"aaSorting": [[5,'asc'], [4,'asc'], [3,'asc'], [1,'asc']]
});
[/code]
No, not for me. I use v1.6 of datatables and it makes no difference. The problem is still there for me.
I should also note that i have a rather large table, it's a phonebook with 894 rows 9 columns and it's in a html table before applying datatables. I think I should try fetching by ajax instead, maybe that's quicker than converting an existing table?
jQuery 1.4
dataTables 1.6
<<<
Object doesn't support this property or method
>>>
[code]
...
$(document).ready(function() {
$('#preq_smList').dataTable( {
"sPaginationType": "full_numbers",
"aoColumns": [
null,
{ "sType": "html"},
null,
{ "sType": "date"},
null,
{ "sType": "date"},
{ "bSortable": false }
]
} );
} );
...
[/code]
I've noticed a very small decrease in speed when using jQuery 1.4, so it's possible it's the straw that broke the camel's back, but the difference is very small indeed. It should also be faster for adding and removing classes... There are a few optimisations I'd like to try for DataTables when I get a chance, but I don't know about getting gains of x10 in speed - it's already fairly nippy ;-)
@jayendrank: Could you open a new thread please, I don't think that directly related - or at least it might confuse the matter :-).
Regards,
Allan
Definitely a BIG performance impact on jQuery 1.4
Under jQuery 1.3.2, I can run a 7000 records table with pagination and JUI with no issues under Safari and Firefox. Under 1.4.0, it crawls with less than 1000 records.
Thanks,
Allan