fbpx
Welcome, Guest
Username: Password: Remember me

TOPIC: (SOLVED)Submission keeps loading forever when using Ajax + Recaptcha

Submission keeps loading forever when using Ajax + Recaptcha 2 years 2 months ago #16524

  • calos
  • calos's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
The form works ok with Ajax and recaptcha ENABLED. However, when the "I'm not a robot" checkbox is not checked and the form is submitted, the page keeps loading forever.
When this happens, the browser's console shows these errors:
Uncaught Error: reCAPTCHA has already been rendered in this element
    at Object.Ng [as render] (recaptcha__en .js:518)
    at window.JoomlaInitReCaptcha2 (recaptcha.min .js?69e60ea0da3d7c5092e16c21063539e4:1)
    at bI (recaptcha__en_gb .js:510)
    at W (recaptcha__en_gb .js:511)
contact-us:1 Uncaught SyntaxError: Unexpected token P in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.success (contact-us:660)
    at u (jquery-3.3.1.min .js:2)
    at Object.fireWith [as resolveWith] (jquery-3.3.1.min .js:2)
    at k (jquery-3.3.1.min .js:2)
    at XMLHttpRequest.<anonymous> (jquery-3.3.1.min .js:2)
------------------------------------------------

If I disable Ajax, there is no error and the recaptcha works well when it is checked or unchecked. However, in this case the thank you message is not shown.

Can you help me solve any of those 2 issues? Thank you!
The topic has been locked.

Submission keeps loading forever when using Ajax + Recaptcha 2 years 2 months ago #16537

  • sudhirsingh
  • sudhirsingh's Avatar
  • Offline
  • Moderator
  • Posts: 22
  • Thank you received: 7
  • Karma: 2
Hi Calos,

Thanks for raising the issue 'Recaptcha checkbox is not checked', now issue is fixed you can download it from here.

Thanks
Sudhir Singh
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
Last Edit: 2 years 2 months ago by sudhirsingh.
The topic has been locked.
The following user(s) said Thank You: akash

Submission keeps loading forever when using Ajax + Recaptcha 2 years 2 months ago #16568

  • calos
  • calos's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
Thank you Sudhir!

It works now.
The topic has been locked.

Submission keeps loading forever when using Ajax + Recaptcha 2 years 2 months ago #16570

  • Lalit Kumar
  • Lalit Kumar's Avatar
  • Offline
  • Moderator
  • Posts: 759
  • Thank you received: 101
  • Karma: 27
Perfect! your issue is resolved now, it would be amazing if you could tweet about your experience with us on our twitter handle: twitter.com/joomdev

Thanks,
Lalit
Thank You,
If you like our support and products, tweet us at JoomDev and let the world know about it.
The topic has been locked.
Moderators: akash, chandandeep
Time to create page: 0.338 seconds
Cron Job Starts