reCAPTCHA Ajax API自定义主题不起作用
发布时间:2020-12-16 01:37:44 所属栏目:百科 来源:网络整理
导读:我看不出我哪里出错了.我已经尝试了我能想到的一切,reCAPTCHA只是没有使用Ajax API.这是我的代码的样子: !-- this is in head --script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"/scriptscript type="text/javascript" src
我看不出我哪里出错了.我已经尝试了我能想到的一切,reCAPTCHA只是没有使用Ajax API.这是我的代码的样子:
<!-- this is in <head> --> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> <script type="text/javascript"> $(document).ready(function() { Recaptcha.create("my key here","recaptcha_widget",{ "theme": "custom","lang": "en","callback": function() { console.log("callback"); } // this doesn't get called }); }); </script> <!-- ... this is in <body> --> <div id="recaptcha_widget" style="display: none"> <div id="recaptcha_image"></div> <div id="recaptcha_links"> <a href="javascript:Recaptcha.reload()">get another</a> • <a class="recaptcha_only_if_image" href="javascript:Recaptcha.switch_type('audio')">switch to audio</a> <a class="recaptcha_only_if_audio" href="javascript:Recaptcha.switch_type('image')">switch to image</a> • <a href="javascript:Recaptcha.showhelp()">help</a> </div> <dt>Type the words</dt> <dd><input type="text" id="recaptcha_response_field" name="recaptcha_response_field"></dd> </div>
对我有用吗?怎么了?你想做什么?
当我替换并警告console.log时,它会在每次加载页面或生成新的reCaptcha时改变.完全像它应该的. 回调不是您提交验证的地方,如果您正在尝试这样做,请查看此处:http://recaptcha.net/apidocs/captcha/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- vue.js todolist实现代码
- fastjson反序列化json对象时保留null值的key
- ios – 如何在Xcode中创建发布版本?
- 如何正确地粘贴多行xml片段到github wiki使用markdown时
- xml – XSL – Identity转换 – 更改元素的值
- function BtnList_Click() { $.ajax({ url: "aa.asmx/G
- objective-c – – [NSObject isEqual:]和 – [NSNumber i
- c# – 如何在“WHERE”条件下使用List编写LINQ to Entities
- C++中vector容器使用详细说明
- VC++实现文件与应用程序关联的方法(注册表修改)