how can the datatable.js load on my web instantly
how can the datatable.js load on my web instantly
dougan01
Posts: 9Questions: 4Answers: 0
I noticed, the datatable.js loads on my web in some seconds after a table form is displayed in some seconds before it changes to the datatable.js.
how can the datatable.js load on my web instantly without it loading in a table form before changing to the datatable.js
This discussion has been closed.
Answers
Without knowing what you have I'm guessing you are loading the data via Ajax. One place to start is with this FAQ regarding speeding up datatables.
If I understand correctly you want to initialize Datatables with a blank table then load the data later. You can do this by using an external ajax request and the
rows.add()
API. Something like this:http://live.datatables.net/huyexejo/115/edit
Kevin
so what im doing is, I already had a table that was loading on the web by querying of the columns and date...so i added the datatable.js bit to load the large data faster and also for paging.
so what happens is, i m not just ajax because it triggeres an error in the browser, so it just loads the datatable.js upond querying of the table...but i noticed it loads a table form on the web and change in about 3 seconds to the datatable.js....is there a way either than the ajaz to just load an existing table into a datatable.js on a web?
This doc discusses the supported data sources:
https://datatables.net/manual/data/#Data-sources
Here are some examples:
https://datatables.net/examples/data_sources/index.html
Kevin
ok, thanks