GithubHelp home page GithubHelp logo

Comments (6)

genemu avatar genemu commented on July 17, 2024

What tag hide tour iframe?

Iframe is only used for noscript.
I do not understand.

More detail please.

from genemuformbundle.

artseld avatar artseld commented on July 17, 2024

Sorry, you are right. But div block (lines 12, 13) is always empty and not contains re-captcha script. I change code of "div_layout.html.twig" in lines 12, 13 from:

<div id="{{ id }}_div"></div>

to:

<div id="{{ id }}_div">
<script type="text/javascript" src="{{ server }}/recaptcha/api/challenge?k={{ public_key }}"></script>
</div>

And all works correctly now.

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

You add view doc :

{{ form_javascript(form) }}

The script is located in the file "jquery_layout.html.twig" in lines 11 form:

<script type="text/javascript" src="{{ server }}/js/recaptcha_ajax.js"></script>
<script type="text/javascript">
    window.onload = function() {
    Recaptcha.create('{{ public_key }}', '{{ id }}_div', {{ configs|json_encode|raw }});
};
</script>

from genemuformbundle.

stof avatar stof commented on July 17, 2024

@genemu btw, you should not use windows.onload as you can only have one such event handler. Use a proper event listener instead

from genemuformbundle.

artseld avatar artseld commented on July 17, 2024

Sorry, thank you.

from genemuformbundle.

genemu avatar genemu commented on July 17, 2024

oops, I had not thought of. I will fixed in the next commit.

Thanks.

from genemuformbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.