Server-side implementation: setting http headers in AJAX call

Server-side implementation: setting http headers in AJAX call

jshado1jshado1 Posts: 1Questions: 0Answers: 0
edited July 2012 in General
Hiya,

I'm using the server-side implementation and I need to set the http header variable "Accept" in the ajax call (like here: http://api.jquery.com/jQuery.ajax/), but I don't see that option in the server-side doc (http://www.datatables.net/usage/server-side) or the general reference doc (http://www.datatables.net/ref).

Replies

  • ErikTrapmanErikTrapman Posts: 2Questions: 0Answers: 0
    I'm looking for the exact same thing. Anyone?
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Use fnServerData to make your own call to the server, with whatever parameters you want set.

    Allan
  • ErikTrapmanErikTrapman Posts: 2Questions: 0Answers: 0
    Thnx. I found this excellent post http://datatables.net/forums/discussion/309/using-a-post-instead-of-a-get-but-a-get-is-still-sent-initially.../p1 i'm going to look into. I'm sure i'll get it working!
This discussion has been closed.