Vignesh Pichamani Vignesh Pichamani - 6 months ago 197
Javascript Question

TypeError: v.easing[this.easing] is not a function

Hi all I make the easing effect for the notification bar in my wordpress Site but whenever i click the button i get the error as TypeError.
TypeError: v.easing[this.easing] is not a function
Here is the script i using now

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>


In Previously i called the script as like this

<script src="<?php echo site_url(); ?>/wp-includes/js/jquery/jquery.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>


Here is the Screenshot What i face exactly.
enter image description here

Any suggestion would be great.
I Provide the live link

Answer

You have two copy of jQuery file in your webpage, remove one inclusion, it would start working. I checked it in my system.

Removing line number 200 -

script type='text/javascript' src='http://techstumbling.com/wp-includes/js/jquery/jquery.js?ver=1.8.3'></script>

would work.

Explained -

You have included jQuery file in the following order -

  • jQuery - created $ and added few properties to $
  • jQuery Ui - added more properties to $
  • jQuery - created $ and overridden the jQuery UI specific properties in $
Comments