reCAPTCHA not showing after an ajax call - 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: reCAPTCHA not showing after an ajax call (/showthread.php?tid=45987) |
reCAPTCHA not showing after an ajax call - El Forum - 10-13-2011 [eluser]Unknown[/eluser] Hello, I'm trying to insert a reCAPTCHA code into my login form and everything went pretty well. But since the form is sent trough an ajax $.(post) command, if the form_validation->run() fails the page is reloaded. if the form is reloaded, it seems that reCAPTCHA can't be reloaded into the form and I can't figure out why. here is the view code: Code: [removed][removed] I tried loading reCAPTCHA without the javascript command (trough iframe) but the problem seems to persist. this is the view that is reloaded with ajax on form error. when I say that reCAPTCHA is not reloaded I mean that the whole reCAPTCHA box is not showing up... ty for help P.S. - sometimes it works without any code change... - if I submit the right word the login is successfull, so there is no controller error on form_validation - the first "removed" items on my code are the script for google reCAPTCHA api |