Recaptcha.widget is null in FF or IE

618 views
Skip to first unread message
Message has been deleted

goaamb

unread,
Jul 15, 2010, 10:28:52 AM7/15/10
to reCAPTCHA
The solution is simply, the HTML where the recaptcha code is inner, is
bad formed, when the code is good validate with w3c or only follow
XHTML 1.0 transactional rules or any other, the error disapear. sorry
my english, down ill put the comment in spanish.

La solucion es simple, el codigo HTML donde el codigo del recaptcha se
encuentra, esta mal formado, cuando el codigo es correctamente
validado por W3C, o simplemente sigue las reglas de XHTML 1.0
transaccional o alguno otro, el error desaparece.

error (PHP):

<?php
require_once ('./captcha/recaptchalib.php');
global $publickey;
global $privatekey;
$publickey = "xxxxxxxxxxxxxxxxx";
$privatekey = "xxxxxxxxxxxxxxxxxxxxx";
echo recaptcha_get_html ( $publickey, $error );
?>

solution:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>Captcha</title>
</head>
<body>
<?php
require_once ('./captcha/recaptchalib.php');
global $publickey;
global $privatekey;
$publickey = "xxxxxxxxxxxxx";
$privatekey = "xxxxxxxxxxxxxxxxx";
echo recaptcha_get_html ( $publickey, $error );
?></body>
</html>
Reply all
Reply to author
Forward
0 new messages