alfajango / jquery-dynatable

A more-fun, semantic, alternative to datatables
http://www.dynatable.com
Other
2.77k stars 361 forks source link

Request defs for sorting/searching/etc #136

Open gczuczy opened 10 years ago

gczuczy commented 10 years ago

Hello,

Pardon me if i was blind, but from the docs on the site, i couldn't figure out, exactly what requests are being made to the resource providing the JSON data for a table, when sorting, pagination, searching, etc, is being done.

Could you please help me to figure this out? I would like to know, when for an example, a header text is pressed for searching, exactly what parameters are being added to the request that is ought to get the sorted data.

Regards, Gergely

drouillard commented 10 years ago

Hi @gczuczy the JSON is being generated from the table itself.

From www.dynatable.com docs

Read / Normalize

The HTML table is scanned and normalized into an array of JSON objects (or collection) where each JSON object (or record) corresponds to a row in the table.


The JSON is not being fetched again when an action such as 'search' is done. Instead the JSON that was created from the HTML of the table is being used. Does that answer it?