Datatables with an Ajax Source - odd paramater in the request

Datatables with an Ajax Source - odd paramater in the request

TokamakTokamak Posts: 2Questions: 0Answers: 0
edited August 2012 in General
I am using sAjaxSource to get my table data which is working fine but when DataTables makes the Ajax request its sending an extra parameter in the request.

My request url looks like this
[code]
'sAjaxSource': "http://ukknulp-inet-01/it/dhcp/api/optiontypes?format=datatables"
[/code]

The php page receives an extra parameter - here the output from Firebugs Params tab.
[quote]
_ 1344937718257
format datatables
[/quote]

What is this extra parameter used for?
Right now I have just added it to my code as an expected parameter then ignore it but I would rather know whats its for!

Thanks

Replies

  • allanallan Posts: 61,822Questions: 1Answers: 10,127 Site admin
    edited August 2012
    Its jQuery's anti-cache parameter: http://api.jquery.com/jQuery.ajax/ (look under 'cache').

    Allan
  • TokamakTokamak Posts: 2Questions: 0Answers: 0
    Ahahh thankyou!
This discussion has been closed.