Comments (5)
Did it throw an error or anything? I need a bit more information as to what you're doing before I can look into this.
from recaptcha.
No. Only the captcha not shown. I think it's because of document.write in recaptcha javascript file,
document.write('<scr'+'ipt type="text/javascript" s'+'rc="' + RecaptchaState.server + 'js/recaptcha.js"></scr'+'ipt>');
I generate the html output at the server side and call your stuff there, and i send it back to the javascript and the html string in to a DOM element. Form appear well but the captcha not.
I get only this:
<script type="text/javascript" src="//www.google.com/recaptcha/api/challenge?k=6LfT5-wSAAAAAAbzIODG3RAKKcfZuyP4e5JfBz1p"></script>
<noscript>
<iframe src="//www.google.com/recaptcha/api/noscript?k=6LfT5-wSAAAAAAbzIODG3RAKKcfZuyP4e5JfBz1p" height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
</noscript>
from recaptcha.
I'm not really sure what would cause the form to render but not the image; it's all done with straight calls from Google. Are you trying to load it within an iframe? Maybe there's an issue with loading it within another iframe? I don't know how much I can help with this, as it doesn't seem to be an issue with this package per se.
from recaptcha.
Hi everyone
I had the same problem, but it doesn't really come from the package.
To display a reCaptcha on a form loaded via ajax , google wants you to use a totally different technique, involving a javascript library.
you wiil find details here : https://developers.google.com/recaptcha/docs/display?csw=1
@greggilbert maybe you should just warn user on your documentation that this library won't work if you load a form dynamically and add that link, it should help.
from recaptcha.
I've merged in your pull request on that. Thanks!
from recaptcha.
Related Issues (20)
- php artisan vendor:publish -> file /config/recaptcha.php not exist HOT 3
- Validation Fails HOT 5
- Validation message is not shown HOT 2
- Validation fails. Error code: timeout-or-duplicate HOT 4
- Error "Please prove you are not a robot" HOT 2
- When can we expect support for Laravel 5.5? HOT 3
- Looking for co-maintainer HOT 13
- ReCAPTCHA placeholder element must be empty HOT 3
- Nothing is displayed. HOT 1
- cURL error 28: Resolving timed out after 5514 milliseconds
- Support for enable / disable
- Method [validateCaptcha] does not exist. HOT 1
- lumen config_path() does not exist
- Undefined index: options HOT 1
- Loading this module translations are broken
- Add the ability to change www.google.com to www.recaptcha.net
- Support reCaptcha v3 HOT 1
- g-recaptcha-response is required - but it's not available on the server side; it's empty/null HOT 2
- Any plan to add support for Laravel 6.0? HOT 3
- Yardım Lütfen HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recaptcha.