This project is read-only.

Using Captcha MVC without form and without submit button

Dec 8, 2013 at 8:33 AM
Edited Dec 8, 2013 at 9:34 AM

Can I use captcha mvc 4 without form and without submit button? I have only input field with button with onclick

event >> javascript function >> and then ajax post to other action. How can I make this? Here is part of my

javascript function after onclick:

    var data = { userName: user.value, pwd: pwd.value, mail:mail.value };
        url: "/Home/Register3/",
        type: "POST",
        data: data,
        dataType: "html",
        success: function (html) {
            if (html.indexOf("Грешка") != -1) {
                if (html.indexOf("Грешка № 1") != -1);
                else if (html.indexOf("Грешка № 2") != -1);
            else {

I can send more from my code if needed. Here is my website, where I must insert "Captcha MVC 4" in chapter: "Регистрация":

Thank you in advance for your reply!