Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End HoverIntent is Not a Function!

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #176468
    rouviere
    Participant

    I am working on a site that uses jQuery for a number of functions but I am having a repeating error:

    hoverIntent is not a function

    I have referenced similar questions on this forum and they almost universally say that it is due to multiple references to jQuery, however, I have carefully reviewed the code and the source code and cannot find any duplicate references.

    There is just this one in functions.php

        // Load jQuery
        if ( !is_admin() ) {
           wp_deregister_script('jquery');
           wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"), false);
           wp_register_script('jquery', ("js/jquery.dropmenu.js"), false);
           wp_register_script('jquery', ("js/jquery.dropmenu2.js"), false);  
           wp_enqueue_script('jquery');
        }
    

    I would really appreciate another set of eyes to help pinpoint and resolve this dilemma.

    #176471
    Alen
    Participant

    hoverIntent is a optional plugin that goes with Dropdown Menu plugin you’re using. Look in the settings for this plugin to turn off hoverIntent. It is being outputted by the plugin…

    
    <!-- Dropdown Menu Widget Effects by shailan (http://shailan.com) v1.9.3 on wp3.9.1 -->
    <script type="text/javascript">/* <![CDATA[ */
    jQuery(document).ready(function($) { 
     
      var config = {
        over : function(){ $(this).find("ul:first").fadeIn('fast'); },  
        out : function(){ $(this).find("ul:first").fadeOut('fast'); },
        timeout : 100  }
     
      $(".dropdown li").hoverIntent( config );
            
    });
    /* ]]> */</script>
    <!-- /Dropdown Menu Widget Effects -->
    

    hoverIntent is a plug-in that attempts to determine the user’s intent… like a crystal ball, only with mouse movement! It is similar to jQuery’s hover method. However, instead of calling the handlerIn function immediately, hoverIntent waits until the user’s mouse slows down enough before making the call.

    http://cherne.net/brian/resources/jquery.hoverIntent.html

    #176476
    rouviere
    Participant

    Hi Alen,

    You nailed it. Thank you for the insight!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.