Captcha validation without submit (refresh page)

Marek 05 Apr, 2012
Hi,

please I have problem with validation of captcha.

I have form at the bottom of page and when someone write bad code to captcha, page refresh, but page is on the top (and form is on bottom).

Is possible to validate captcha by javascript (without refresh of page?)

Thank you for your time
GreyHead 05 Apr, 2012
Hi Marek,

The whole point of the Captcha used here is that it isn't dependant on JavaScript and will still work if JavaScript is turned off.

Bob
Marek 10 Apr, 2012
Hi Bob,

but is there any solution how to do it when I enter wrong captcha, so that I was credible way back to the form instead of on top of the page?

Thanks
GreyHead 14 Apr, 2012
Hi Marek,

I can't find the thread right now but I seem to remember that a while ago (maybe a year or two) we found a way of doing this with JavaScript. There was a snippet that looked for the error message div and if it was present changed the focus to the beginning of the form.

Shouldn't be too hard to re-write something like that.

Bob
This topic is locked and no more replies can be posted.