• Resolved saphod

    (@saphod)


    Although the reCaptcha plugin works well (2.9.1), I get a JavaScript error in Firefox 3. Firebug shows the following error: “sub is null”.

    The source code is:

    var sub = document.getElementById('submit');
    sub.parentNode.removeChild(sub);

    I don’t know why this error happens… maybe because “submit” is not a unique name or it is defined AFTER the script?

Viewing 1 replies (of 1 total)
  • Thread Starter saphod

    (@saphod)

    OK, problem solved.

    Actually, the call to the ‘comment_form’ hook in my template was BEFORE the “Submit”-Button, therefore the ID ‘submit’ wasn’t even initialized when the JavaScript called it – hence it was NULL.

    I have adapted my comments-php (rather than the plugin), and it works fine now – no JavaScript error any longer.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP-reCAPTCHA] Javascript Console / Firebug Shows Error’ is closed to new replies.