mercredi 12 septembre 2012

Datatables sEcho

When the datas for the table are generated from the server side by using JSON, you must send a sEcho parameter with the datas. But what is sEcho ?

<<
sEcho : An unaltered copy of sEcho sent from the client side. This parameter will change with each draw (it is basically a draw count) - so it is important that this is implemented. Note that it is strongly recommended for security reasons that you 'cast' this parameter to an integer in order to prevent Cross Site Scripting (XSS) attacks.
>>

Source : http://datatables.net/usage/server-side

Aucun commentaire:

Categories