Build table on tab click (not on load)

Build table on tab click (not on load)

matthttammatthttam Posts: 40Questions: 2Answers: 0
edited September 2011 in DataTables 1.8
I know it was kind of asked here: http://www.datatables.net/forums/discussion/4290/dont-call-fndraw-on-initialization/p1
But has the functionality been added?

I have 3 tables that are being drawn in 3 different tabs. It would be nice to have the get requests not fire until the tabs are selected. That would trim an entire 900 ms off a page load.

Thanks!
Bil

PS: my tables are server-side using a php script to return the JSON object

Replies

  • matthttammatthttam Posts: 40Questions: 2Answers: 0
    I've decided that this feature isn't really needed. I ended up having to rebuild several other pages and didn't have time to work on this.

    As an alternative solution I simply explained to the end-users how to refresh the tables as they needed and even set up an auto refresh on the main table they use alot. Now they hardly ever refresh the whole page so the delay is not noticeable.

    Thanks anyways :-)
    Bil
This discussion has been closed.