Welcome Guest, Not a member yet? Register   Sign In
[RESOLVED] HOWTO: pass CSRF token parameter in Ajax_Pagination ??
#1

[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']."
with separating a comma and on output page source code, it looks like

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 !
#2

[eluser]Zeeshan Rasool[/eluser]
Oh i missed single quotes Sad

parameters: {page: 40, ci_token: 'a97f692530f71bd96a4bf368318dafc597eddf55'}




Theme © iAndrew 2016 - Forum software by © MyBB