0

I use the Jquery Real Person Recaptcha (http://keith-wood.name/realPerson.html). It works, but "Click to change" o "Try another options" dont work and I have the error:

Object # has no method 'on'

My code is:

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="en_US" />
    <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="jquery.mousewheel-3.0.2.pack.js"></script>
    <script type="text/javascript" src="fancybox/jquery.fancybox-1.3.1.js"></script>
    <script type="text/javascript" src="js/jquery.tickers.js"></script>
    <script type="text/javascript" src="js/jquery.realperson.js"></script>
    <link href="css/jquery.realperson.css" rel="stylesheet" type="text/css" media="screen"/>

    <style type="text/css">
        .realperson-challenge { /*display: inline-block*/
            padding-top: 20px;
            padding-bottom: 20px;
        }
    </style>
    <script type="text/javascript">
        $(function() {
            $('#defaultReal').realperson();
        });
    </script>
</head>

Anyone can help me? I don't see the error. There are 2 jquery includes but if i delete one of this the result is the same.

Thanks in advance

Stefania


Your problem is that the on() method was added in jQuery 1.7 and you're using 1.4.2. There is no on() method in 1.4.2, so you'll either need to update your jQuery (http://jquery.com) or find a version of that plugin which works for versions of jQuery below 1.7.

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
4

2 回答 2

1

您的问题是该on()方法是在 jQuery 1.7 中添加的,而您使用的是 1.4.2。1.4.2中没有on()方法,因此您要么需要更新 jQuery ( http://jquery.com ),要么找到适用于 1.7 以下 jQuery 版本的插件版本。

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
于 2013-05-28T08:37:21.767 回答
0

use

<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>

and it should do this

于 2013-05-28T08:50:14.070 回答