Using Captcha MVC without form and without submit button

Dec 8, 2013 at 7:33 AM
Edited Dec 8, 2013 at 8:34 AM
Hi,

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 };
    $.ajax({
        url: "/Home/Register3/",
        type: "POST",
        data: data,
        dataType: "html",
        success: function (html) {
            if (html.indexOf("Грешка") != -1) {
                window.alert(html);
                if (html.indexOf("Грешка № 1") != -1) userName.select();
                else if (html.indexOf("Грешка № 2") != -1) mail.select();
            }
            else {
                $("#Content").html(html);
            }
...


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

http://osip.ludmil.net

Thank you in advance for your reply!