Forums

Google NoCaptcha would not reload in ajax submit form if not answered

dezi168 11 Feb, 2015
1 Likes
Hi Max,

Just downloaded you lastest version including the Google NoCaptcha actions.

Many thanks for providing this new captcha solution in CF.

I think the is a bug with forms with ajax submission.

Let me explain :
If one submit the form without completing the captcha, the form displays the erros msg "The reCAPTCHA wasn't entered correctly. Please try it again." (that what is expected) BUT the captcha image is NOT LOADED (that's the problem).

After check on javascrit console, there is an error :
"Uncaught ReferenceError: chronoforms_validation_signs is not defined"
in ligne :
chronoforms_validation_signs($("#chronoform-my-form"));

For information, in my page both Mootols and Jquery (with no conflicts) are loaded. I do not have any javascript error on page load (only after ajax submit).

Best regards

PS : if this finally works, I think it can be a nice workaround of making work Chronoforms in plugin with Joomla cache enabled.
Max_admin 12 Feb, 2015
Hi Dezi,

Using reCaptcha or NoCaptcha with AJAX is not advised, the JS initialization is done on page load, so it may not reinitialize properly after the AJAX reload.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dezi168 12 Feb, 2015
Hi Max,

I understand your point.

Don't you think it would be possible to add re-initialize NoCaptcha function after AJAX reload ?

Best regards
Max_admin 13 Feb, 2015
There may be some workarounds, I will add this to the todo list, but for now please try a honeypot load & check with the JS setting enabled (to make sure JS is enabled since this is an AJAX form anyway), that may have a very close security level!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dezi168 14 Feb, 2015
Hi Max,

I know well your new honey pot action.

In production, I use CFv4 with token (no captcha) and I never experienced any spam.

But honey pot action (even with dynamic option enabled) does not work with joomla cache enabled (I insert CF forms using the plugin). Only NoCaptcha seems to work.
I am not sure the dynamic option works well. Because if it is dynamic (load token using ajax on page load), it should be working with joomla cache enabled.

As a workaround I am now investigating putting my forms in iframes. But there are then other problems (if tooltip is displayed scroollbars may apear for the iframe).

My concern in the moment is how I can enable Joomla cache with CF (as mentionned before, my CF forms are using the plugin to be inserted in my content).

Best regards
Max_admin 06 Mar, 2015
Hi Dezi,

Please send me a message using the contact us page to test a patch for the Chronoforms5 plugin which would solve the cache problem.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
webix 22 Oct, 2015
Hi Max,

would kindly ask if this issue with reload noCaptcha on AJAX has already some fix or workaround how it can be implementated?

Using chronoforms5 it still does not work. I know about other way to prevent Spam in Cronoforms, but for some reason would like to stay by noCaptcha solution.

And the other question is, how to prevent chronoforms to load jquery lib, since this is already loaded from core.

Many thanks

Alex
Max_admin 22 Oct, 2015
Hi Alex,

There is still no way to load noCaptcha or reCaptcha with AJAX enabled at the moment, I don't think its even possible because the script may need to run when the page loads.

You can't disable the Chronoforms JQuery lib, but its only 100k file.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.