[RESOLVED] HOWTO: pass CSRF token parameter in Ajax_Pagination ?? |
[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 !
[eluser]Zeeshan Rasool[/eluser]
Oh i missed single quotes ![]() parameters: {page: 40, ci_token: 'a97f692530f71bd96a4bf368318dafc597eddf55'} |
Welcome Guest, Not a member yet? Register Sign In |