• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post method not working in Codeigniter

#11
[eluser]InsiteFX[/eluser]
Use jQuery cookie.
Code:
/* global ajax setup
------------------------------------------------------------------------- */
$.ajaxSetup({
  type: 'GET',
  datatype: 'json',
  // for CodeIgniter CSRF protection...
  data: { csrf_test_name: $.cookie('csrf_cookie_name') },
  timeout: 20000
});


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.