Including More Data in an AJAX Post with CSRF Enabled - 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: Including More Data in an AJAX Post with CSRF Enabled (/showthread.php?tid=44091) |
Including More Data in an AJAX Post with CSRF Enabled - El Forum - 08-02-2011 [eluser]Doulos[/eluser] OK, So here's the javascript, I have 9 Elements I need to POST at the same time with Ajax, 1 of which is the CSRF token. Code: tx = $("tx"+working_row).val; So, I'd like to include them all in the obj variable and throw that in the call, but whenever I add anything to the obj variable, say 'tx':tx it gives me error 500 Not Allowed. With only the CSRF token in the Obj variable it works just fine. What am I missing? thanks! Including More Data in an AJAX Post with CSRF Enabled - El Forum - 08-02-2011 [eluser]Doulos[/eluser] Problem was my inability to use the value function from Jquery correctly. Needed () after each .val. |