dpdhnd3577 2011-03-25 10:38
浏览 32

ReCaptcha不会出现在Facebox上

<?php 
session_start(); 
require_once('recaptcha/recaptchalib.php'); 
$publickey = "API_KEY"; // you got this from the signup page 
?> 
<script type="text/javascript" src="javascripts/jquery.form.js"></ 
script> 
     <script type="text/javascript"> 
        $(document).ready(function() { 
                $('#inquiry').ajaxForm({ 
                        target: '#error', 
                        success: function() { 
                        $('#error').fadeIn('slow'); 
                        } 
                }); 
        }); 
        var RecaptchaOptions = { 
                theme : 'clean' 
        }; 
    </script> 
<div class="top_area">Inquiry Form</div> 
    <div id="search_area"> 
    </div> 
<div style="overflow-y: hidden;"> 
<form name="inquiry" id="inquiry" action="asadadasd.php" 
method="post"> 
<div id="error"></div> 
<table align="center"> 
<tr> 
        <td valign="top" align="right"></td> 
        <td> 
                <?php 
                  echo recaptcha_get_html($publickey); 
                ?> 
        </td> 
</tr> 
<tr> 
        <td valign="top"></td> 
        <td> 
                <input type="submit" id="submit" name="submit" value="Submit" 
style="height: 30px; background: #ab2220; border: 2px #fff solid; 
color: #fff;" /> 
        </td> 
</tr> 
</table> 
</form> 
</table> 
</form> 
</div>

That's the code I have as of now but recaptcha plugin doesn't show up am I missing something? Thanks guys, You are so awesome

  • 写回答

1条回答 默认 最新

  • dtt27783 2012-02-08 03:30
    关注

    You have to use the recaptcha AJAX API on facebox. Include the AJAX script in your page (Not the page facebox will display. Put it in the containing page) Then use the recaptcha api as specified in the docs.

    http://code.google.com/apis/recaptcha/docs/display.html#AJAX

    评论

报告相同问题?

悬赏问题

  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计