![]() |
[RESOLVED] HOWTO: pass CSRF token parameter in Ajax_Pagination ?? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [RESOLVED] HOWTO: pass CSRF token parameter in Ajax_Pagination ?? (/showthread.php?tid=29504) |
[RESOLVED] HOWTO: pass CSRF token parameter in Ajax_Pagination ?? - El Forum - 04-12-2010 [eluser]Zeeshan Rasool[/eluser] Hi dear members! I am using Ajax_Pagination and i have implemented CSRF which adds a hidden field to my each form but in ajax call i have to do it manually i have updated all my ajax post calls but here is my pagination code in which i want to add a token param but failed I passed Code: ci_token:".@$_COOKIE['ci_token']." Code: new (Ajax.Updater)("content", "http://www.sss.com/admin/listings/", {method: "post", parameters: {page: 40, ci_token: a97f692530f71bd96a4bf368318dafc597eddf55}, evalScripts: true}); Is it right way to pass two param Code: parameters: {page: 40, ci_token: a97f692530f71bd96a4bf368318dafc597eddf55} Very Thanks ! [RESOLVED] HOWTO: pass CSRF token parameter in Ajax_Pagination ?? - El Forum - 04-12-2010 [eluser]Zeeshan Rasool[/eluser] Oh i missed single quotes ![]() parameters: {page: 40, ci_token: 'a97f692530f71bd96a4bf368318dafc597eddf55'} |