bardt Reply #1, 9 months, 1 week ago
Hello everyone!
I need to make an Ajax validation form (as I think, I'm new to such things). It looks like a lightbox appearing in front of the page, and it has several fields and captcha. I use SPForm for it, and on "no-js" fallback it works fine.
If js is enabled, I check fields validation on client (actually, I use the SPFoem JS scripts for it), but I need to validate CAPTCHA as well. Can't figure out how to do it. If I use jQuery plugin like jquery.form.js, it just gets the response from page containing SPForm snippet that everything is ok if I even don't fill the CAPTCHA field.
The idea is ti make a snippet to check just CAPTCHA and make form action redirect to the page containing this snippet and no template, but I don't have enough experience to code it yet.
Can you recomment me some tutorials on my issue (about writing captcha validation snippet etc) or provide another solution if I do something wrong?
I need to make an Ajax validation form (as I think, I'm new to such things). It looks like a lightbox appearing in front of the page, and it has several fields and captcha. I use SPForm for it, and on "no-js" fallback it works fine.
If js is enabled, I check fields validation on client (actually, I use the SPFoem JS scripts for it), but I need to validate CAPTCHA as well. Can't figure out how to do it. If I use jQuery plugin like jquery.form.js, it just gets the response from page containing SPForm snippet that everything is ok if I even don't fill the CAPTCHA field.
The idea is ti make a snippet to check just CAPTCHA and make form action redirect to the page containing this snippet and no template, but I don't have enough experience to code it yet.
Can you recomment me some tutorials on my issue (about writing captcha validation snippet etc) or provide another solution if I do something wrong?