jquery - Recaptcha not shown by colorbox -


i using colorbox jquery show registeration form in popup box.

i used following script initiate popup

<script type="text/javascript" language="javascript">         $(".ajax").colorbox({width:"30%"});  </script> 

in popup called registration form recaptcha. can form fields in popupbox not recaptcha .

i getting recptcha code place of recaptcha in ajax form noscript

    <iframe src="http://www.google.com/recaptcha/api/noscript?k=6ldxveqsaaaaadjtoplughy6irxjgrefwwwof47h" 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"/> 

popup box without recaptcha

actual registration form without ajax

actual regiestration form without ajax

recaptcha in popup can done following code

<head>  <!-- ... html  content ... -->    <script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>    <!-- wrapping recaptcha create method in javascript function -->   <script type="text/javascript">      function showrecaptcha(element) {        recaptcha.create("your_public_key", element, {          theme: "red",          callback: recaptcha.focus_response_field});      }   </script>    <!-- ... more of html  content ... -->  </head>  <body>    <!-- ... html <body> content ... -->    <div id="recaptcha_div"></div>    <input type="button" value="show recaptcha" onclick="showrecaptcha('recaptcha_div');"></input>   <!-- ... more of html  content ... -->  <body> 

google's details information problem

result enter image description here


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -