CSRF with Jquery (Jeditable) |
[eluser]wakey[/eluser]
Hi, I'm using the CSRF plugin as found here - http://ellislab.com/forums/viewthread/92399/ It is working correctly across my site, but I use ajax in a few places with the Jeditable inline editor. I need to add the hidden ci_token to my jeditable fields but I am not sure how to go about it. Has anyone experience with problems like this? My jeditable code is as follows - Code: $(function() { Thanks ![]()
[eluser]wakey[/eluser]
Just managed to get this working after spending quite a bit of time messing about. I'm still learning javascript really. It wasn't too hard in the end. I defined the CSRF value in the controller and made just two changes to the jquery code - Code: var token = "<?php echo $ci_token; ?>"; Hope this helps someone with a similar problem! |
Welcome Guest, Not a member yet? Register Sign In |