requestEnd

Fired when a request to a handler is finished - can be distinguished via the type argument in the event data.

Event Data

e.type String

The type triggered the request: "reset|validation|audio".

Example

<input id="captcha" />
<script>
    var captcha = $("#captcha").kendoCaptcha({
        handler: "https://demos.telerik.com/kendo-ui/captcha/reset",
        validationHandler: "https://demos.telerik.com/kendo-ui/captcha/validate",
        requestEnd: function (ev) {
            console.log(ev.type);
        }
    }).data("kendoCaptcha");
</script>

Example - reset Captcha on validation fail

<input id="captcha" />
<script>
    var captcha = $("#captcha").kendoCaptcha({
        handler: "https://demos.telerik.com/kendo-ui/captcha/reset",
        validationHandler: "https://demos.telerik.com/kendo-ui/captcha/validate",
        requestEnd: function (ev) {
            if (ev.type === "validation" && ev.data === false) {
                ev.sender.reset();
            }
        }
    }).data("kendoCaptcha");
</script>
In this article