fnCookieCallback - Documentation

fnCookieCallback - Documentation

boeckoboecko Posts: 9Questions: 0Answers: 0
edited October 2010 in Bug reports
The doc doesn't mention that encodeURIComponent has to be called for the JSON-Data

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    I'm not 100% certain that it should mention this - the reason I think that is that if you are using the callback function, you need to know how at least some of the internals of how DataTables works, what parameters there are etc, and for this you need to check the code. Also, encodeURIComponent isn't required for all fields, and certainly not any custom ones you might define. Interesting one...

    Allan
  • boeckoboecko Posts: 9Questions: 0Answers: 0
    edited October 2010
    a) for jsonencoded-data it's a must (because of the semicolon). safari doesn't like it without
    b) when there is no fnCookieCallback DataTables does call encodeURIComponent
  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Yup good point - I missed that bit! :-). I've updated the documentation to note this now.

    Regards,
    Allan
This discussion has been closed.