New to Kendo UI for jQuery? Start a free 30-day trial

AudioHandler

configuration

The URL, AJAX settings or function that fetches the audio of the captcha. When used with function, call the args.success method with the source of the audio.

audioHandler

String|Function|Object

Set the audio handler as function

pseudo
    <input id="captcha" />
    <script>
        $("#captcha").kendoCaptcha({
            handler: "https://demos.telerik.com/kendo-ui/captcha/reset",
            audioHandler: function (args) {
                args.success("https://demos.telerik.com/kendo-ui/captcha/audio?captchaId=" + args.data.captchaId);
            }
        });
    </script>

Set the Audio Handler as URL or AJAX

pseudo
    <input id="captcha" />
    <script>
        $("#captcha").kendoCaptcha({
            handler: "https://demos.telerik.com/kendo-ui/captcha/reset",
            // audioHandler: "url-to-audio" // Response should return the audio source - base64 stream or url to the audio file
        });
    </script>
<input id="captcha" />
<script>
    $("#captcha").kendoCaptcha({
        handler: "https://demos.telerik.com/kendo-ui/captcha/reset",
        audioHandler: "https://demos.telerik.com/kendo-ui/captcha/audio"
    });
</script>
Not finding the help you need?
Contact Support