![]() |
resolve ajax failure in codeigniter 3 view page? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: resolve ajax failure in codeigniter 3 view page? (/showthread.php?tid=91252) |
resolve ajax failure in codeigniter 3 view page? - solmazbabakan - 07-09-2024 in codeigniter 3 view page i have following to edit comments : PHP Code: function toggleEdit(commentId) { but ajax failed to activated while get_csrf_token/?_=1720512009436 is retrived successfully when i check. how should i resolve that? RE: resolve ajax failure in codeigniter 3 view page? - demyr - 07-09-2024 Well, not sure about CI3 but with CI4 I would add : Code: <input type="hidden" class="txt_csrfname" name="<?= csrf_token() ?>" value="<?= csrf_hash() ?>" /> Code: $(document).ready(function(){ RE: resolve ajax failure in codeigniter 3 view page? - InsiteFX - 07-09-2024 Correct way to re-generate CSRF for sequential AJAX calls |