reCAPTCHA JS Error in Safari

368 views
Skip to first unread message

Paul R.

unread,
Jul 3, 2009, 7:12:59 PM7/3/09
to reCAPTCHA
Howdy,

I was asked to add reCAPTCHA to an existing site, so I can't take
responsibility for the rest of the code. That said. I followed the PHP
instructions on reCAPTCHA's site and have successfully gotten it
working in both FF and IE; however, for some reason the JS sent back
by reCAPTCHA's server to generate the proper mark-up errors out in
Safari. The Web Inspector gives me the following error:

TypeError: Value undefined (result of expression document.write) is
not object.
http://api.recaptcha.net/challenge?k=6LeuLgcAAAAAAJfABDfI_iR_HXSpEhk_1z2-ag7o
(line 12)

I've been scouring Google looking for a similar issue but can't seem
to find one. If anyone would be willing to help me with this, the
issue can be seen at http://www.wackydate.com/agree.php

Thanks,

Paul

Joe_e

unread,
Jul 4, 2009, 1:22:00 PM7/4/09
to reCAPTCHA
I take it you mean Safari on the PC, not the Mac? Or both?

On Jul 4, 12:12 am, "Paul R." <paul.reynev...@gmail.com> wrote:
> Howdy,
>
> I was asked to add reCAPTCHA to an existing site, so I can't take
> responsibility for the rest of the code. That said. I followed the PHP
> instructions on reCAPTCHA's site and have successfully gotten it
> working in both FF and IE; however, for some reason the JS sent back
> by reCAPTCHA's server to generate the proper mark-up errors out in
> Safari. The Web Inspector gives me the following error:
>
> TypeError: Value undefined (result of expression document.write) is
> not object.http://api.recaptcha.net/challenge?k=6LeuLgcAAAAAAJfABDfI_iR_HXSpEhk_...

Paul R.

unread,
Jul 6, 2009, 3:49:31 PM7/6/09
to reCAPTCHA
I'm on a Mac running Leopard and Safari 3. I have absolutely no idea
why this isn't displaying and would appreciate any ideas. Thanks in
advance.

selfsimilar

unread,
Jul 8, 2009, 10:04:07 PM7/8/09
to reCAPTCHA
Just to second this issue - I have reCaptcha working under a Drupal
installation and it works fine under FF 3.5, and IE 8, but not Safari
4 for Windows. I think it's a javascript issue because the <noscript>
iframe doesn't render, and javascript is working in the menus of the
site. I don't have time to dig in and debug right now, but thought I'd
bring attention to this deficiency.

Colin

Charles Sweeney

unread,
Jul 9, 2009, 6:24:23 AM7/9/09
to reCAPTCHA
Paul R. wrote:
> Howdy,
>
> I was asked to add reCAPTCHA to an existing site, so I can't take
> responsibility for the rest of the code.

Get the person who can take responsibility for the rest of the code,
to fix the validation errors.

--
Charles Sweeney
http://FormToEmail.com
PHP mail script with reCAPTCHA

Paul R.

unread,
Jul 9, 2009, 7:58:16 PM7/9/09
to reCAPTCHA
Using Edgar's code from problem with JQuery UI and Recaptcha, I got
this situation figured out.

Just add this small snippet to
your form:

<div id="recaptcha_div"></div>'
<script type='text/javascript'>
Recaptcha.create("yourkey",
"recaptcha_div", {
theme: "red",
callback: Recaptcha.focus_response_field
});
</script>

And add this to the header:

<script type="text/javascript"
src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script>

Thanks Edgar.

On Jul 3, 4:12 pm, "Paul R." <paul.reynev...@gmail.com> wrote:
> Howdy,
>
> I was asked to add reCAPTCHA to an existing site, so I can't take
> responsibility for the rest of the code. That said. I followed the PHP
> instructions on reCAPTCHA's site and have successfully gotten it
> working in both FF and IE; however, for some reason the JS sent back
> by reCAPTCHA's server to generate the proper mark-up errors out in
> Safari. The Web Inspector gives me the following error:
>
> TypeError: Value undefined (result of expression document.write) is
> not object.http://api.recaptcha.net/challenge?k=6LeuLgcAAAAAAJfABDfI_iR_HXSpEhk_...
Reply all
Reply to author
Forward
0 new messages