artem_niko Posted January 10, 2023 Share Posted January 10, 2023 Good evening! I'm looking here and thinking about whether it makes sense to use Yandex Captcha. I use the instructions: https://cloud .yandex.ru/docs/smartcaptcha/quickstart#add-widget I did everything as it is written there, but I got to the point of adding a widget and stupor. What should I use? Uni HTML Frame? Where to put the script connection: <script src="https://captcha-api.yandex.ru/captcha.js" defer></script> At the moment I have no error occurs, but the widget is not displayed either: The widget is located on UniLoginForm. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 10, 2023 Share Posted January 10, 2023 Hello, Did you obtain CAPTCHA keys? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted January 11, 2023 Author Share Posted January 11, 2023 4 hours ago, Sherzod said: Hello, Did you obtain CAPTCHA keys? Yes, of course Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2023 Share Posted January 11, 2023 11 hours ago, artem_niko said: The widget is located on UniLoginForm. How? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted January 11, 2023 Author Share Posted January 11, 2023 6 minutes ago, Sherzod said: How? UniHTMLFrame1, with HTML code from instructions, on the UniLoginForm and I was write: UniLoginForm1.Script:='<script src="https://captcha-api.yandex.ru/captcha.js" defer></script>'; Of course, widget not working... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2023 Share Posted January 11, 2023 Try adding the script directly to the HTMLFrame. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted January 11, 2023 Author Share Posted January 11, 2023 5 minutes ago, Sherzod said: Try adding the script directly to the HTMLFrame. Like this? <script src="https://captcha-api.yandex.ru/captcha.js" defer></script> <div id="captcha-container" class="smart-captcha" data-sitekey="cdsfdsfsdfsdfsdfsdfsdfsdfsy0JsvFRzTyZZ" ></div> As result: Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2023 Share Posted January 11, 2023 Вы тестируете на localhost? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2023 Share Posted January 11, 2023 Are you testing on localhost? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted January 11, 2023 Author Share Posted January 11, 2023 59 minutes ago, Sherzod said: Вы тестируете на localhost? Да, на нем. В этом причина? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2023 Share Posted January 11, 2023 2 minutes ago, artem_niko said: В этом причина? Думаю, да. Я не смотрел документацию, но мне кажется Вы должны указать конкретный домен. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted January 11, 2023 Author Share Posted January 11, 2023 10 minutes ago, Sherzod said: Думаю, да. Я не смотрел документацию, но мне кажется Вы должны указать конкретный домен. Возможно... У меня есть домен, но нет пока сервера, на котором бы я расположил свой проект, т.е. Яндекс не может, скорее всего, достучаться до моего компа на локалхост Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2023 Share Posted January 11, 2023 8 minutes ago, artem_niko said: т.е. Яндекс не может, скорее всего, достучаться до моего компа на локалхост Скорее всего. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.