What is happening is that the Captcha image is not displayed from an Ajax call, however a direct access works. All other form elements are displayed correctly though.
This is the script from an Ajax call:
<style>body { font-size: 12px;} </style>
<div id="form">
<form action="" method="post">
<input type="hidden" name="register" value="1">
<p>E-Mail ID: <input type="text" name="email" value=""></p>
<p>Choose a username: <input type="text" name="username" value=""></p>
<p>Password: <input type="password" name="password" value=""></p>
<p>Enter the Captcha below:</p>
<script type="text/javascript" src="http://api.recaptcha.net/challenge?k=6LfPJwgAAAAAAI-8F3Lp11umLntMpXov8Xfz4QfU"></script>
<noscript> <iframe src="http://api.recaptcha.net/noscript?k=6LfPJwgAAAAAAI-8F3Lp11umLntMpXov8Xfz4QfU" 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><input type="submit" value="submit" />
</form>
</div>
And this is the direct one:
<p>Enter the Captcha below:</p>
<script type="text/javascript" src="http://api.recaptcha.net/challenge?k=6LfPJwgAAAAAAI-8F3Lp11umLntMpXov8Xfz4QfU"></script>
<noscript> <iframe src="http://api.recaptcha.net/noscript?k=6LfPJwgAAAAAAI-8F3Lp11umLntMpXov8Xfz4QfU" 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><input type="submit" value="submit" />
</form>
</div>
Thanks