Uncaught TypeError: Object #<Object> has no method 'movingBoxes'

前端 未结 10 622
既然无缘
既然无缘 2020-12-08 19:06

Im trying to use the movingBoxes plugin with my asp.net mvc site and it is not working (obviously). I have the movingboxes.js imported in my head tag in the site.master lik

相关标签:
10条回答
  • 2020-12-08 19:36

    I had a such problem too because i was using IMG tag and UL tag.

    Try to apply the 'corners' plugin to elements such as $('#mydiv').corner(), $('#myspan').corner(), $('#myp').corner() but NOT for $('#img').corner()! This rule is related with adding child DIVs into specified element for emulation round-corner effect. As we know IMG element couldn't have any child elements.

    I've solved this by wrapping a needed element within the div and changing IMG to DIV with background: CSS property.

    Good luck!

    0 讨论(0)
  • 2020-12-08 19:41

    It's also a good idea to make sure you're using the correct version of jQuery. I had recently acquired a project using jQuery 1.6.2 that wasn't working with the hoverIntent plugin. Upgrading it to the most recent version fixed that for me.

    0 讨论(0)
  • 2020-12-08 19:46

    i had the same problem i had linked jquery twice . The later version was overwriting my plugin.

    I just removed the later jquery it started working.

    0 讨论(0)
  • 2020-12-08 19:49

    I had the same problem. I changed the order of the scripts in the head part, and it worked for me. Every script the plugin needs - needs to stay close.

    For example:

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
    <script type="text/javascript"> 
    $(document).ready(function() {
        $('#slider').cycle({
                fx: 'fade' 
            });
        });
    </script>
    
    0 讨论(0)
  • 2020-12-08 19:49

    I found that I was using a selector for my rendorTo div that I was using to render my column highcharts graph. Apparently it adds the selector for you so you just need to pass id.

    renderTo: $('#myGraphDiv') to a string 'myGraphDiv' this fixed the error hope this helps someone else out as well.

    0 讨论(0)
  • 2020-12-08 19:51

    There are a few things you can try to get this working.

    1. Be ABSOLUTELY sure your script is being pulled into the page, one way to check is by using the 'sources' tab in the Chrome Debugger and searching for the file.

    2. Be sure that you've included the script after you've included jQuery, as it is most certainly dependant upon that.

    Other than that, I checked out the API and you're definitely doing everything right as far as I can see. Best of luck friend!

    EDIT: Ensure you close your script tag. There's an answer below that points to that being the solution.

    0 讨论(0)
提交回复
热议问题