简体   繁体   中英

Reloading BotDetect Captcha using javascript

is there anyway for refreshing BotDetect captcha by javascript? something like what refresh button on captcha module does!

BotDetect验证码上的刷新按钮

i tried to find and trigger the refresh link by using following code:

 var reloadLink = $("#ExampleCaptcha_ReloadIcon"); reloadLink.trigger('click'); 

but it didnt work. im using ASP.NET MVC 5

Try using

$('.BDC_ReloadIcon').trigger('click');

Try this:

const captcha = $('#botdetect-captcha').captcha({ captchaEndpoint: 'simple-captcha-endpoint.ashx' });

And where you need - captcha.reloadImage();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM