Scroller broken for huge Ajax data sets on FF and IE
Scroller broken for huge Ajax data sets on FF and IE
jan_goyvaerts
Posts: 31Questions: 0Answers: 0
The vertical scrollbar behaves differently when doing server-side Ajax on FireFox 21 and IE. Instead of scrolling for the whole dataset it only scrolls the page. There are no visible JS errors.
It does work with Chrome 27 however.
After many attempts to reproduce the online demo (http://www.datatables.net/release-datatables/extras/Scroller/server-side_processing.html) I finally reduced the total amount of data in the response from 1,000,000 to 10,000; as for the demo. From then on the vertical scrollbar does work for FireFox and IE too. 500,000 seems to be okay. But 750,000 breaks the behavior also.
To reproduce this error I think you just have to increase the values of iTotalRecords and iTotalDisplayRecords in the response to 1,000,000.
It does work with Chrome 27 however.
After many attempts to reproduce the online demo (http://www.datatables.net/release-datatables/extras/Scroller/server-side_processing.html) I finally reduced the total amount of data in the response from 1,000,000 to 10,000; as for the demo. From then on the vertical scrollbar does work for FireFox and IE too. 500,000 seems to be okay. But 750,000 breaks the behavior also.
To reproduce this error I think you just have to increase the values of iTotalRecords and iTotalDisplayRecords in the response to 1,000,000.
This discussion has been closed.
Replies
But then again, what does one do when there really are 500K rows ? :-)
Chrome and Firefox have no such problem.
Chrome 27 (Works)
Firefox 21 (Doesn't scroll the wrt the total data set)
IE10 (Doesn't scroll the wrt the total data set)
Firefox puts the height into scientific notation while IE is 8.6M short.
Therefor, as it is now Scroller can be used with IE to show big data sets. I could make it work to 50K. With 100K I can't scroll lower than 51K. :-)
It looks like 33554400px is the max in Chrome and Firefox ( http://stackoverflow.com/questions/16637530 ), so a little better than IE, but not much.
This might be resolvable by spliting the forcing element into multiple individual elements if the height to be displays is greater than a certain size.
I'll need to take a look a bit further at it.
Regards,
Allan
I'm in a bit of problem explaining to newbees why the wonderful scrolling feature is working differently. Too long those technical emails !!! :-p
Allan