• 0

jQuery Quicksand


Question

11 answers to this question

Recommended Posts

  • 0

You have an error in tooltips.js on line 51: Uncaught TypeError: Object #<Object> has no method 'tooltips'. That's causing all other JS to break. Fix that and see if Quicksand works.

Link to comment
Share on other sites

  • 0

Can you give me a little input on how to change line 51 to I can get it working. Not really good with JS.

Link to comment
Share on other sites

  • 0


<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="../js/tooltips.js"></script>
<!-- <script type="text/javascript" src="../js/main.js"></script> -->
<script type="text/javascript" src="../js/jquery-1.4.1-and-plugins.min.js"></script>
<script type="text/javascript" src="../js/quicksand.js"></script>
[/CODE]

Well... load quicksand.js after jquery but before your code, first of all. If you move the tooltips code under the document.ready() it should work.

Or

[CODE]
(function($) {
$("#footer-social a[title]").tooltips();
})(jQuery)
[/CODE]

Link to comment
Share on other sites

  • 0

You're loading two different versions of jQuery:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

<script type="text/javascript" src="../js/tooltips.js"></script>

<!-- <script type="text/javascript" src="../js/main.js"></script> -->

<script type="text/javascript" src="../js/jquery-1.4.1-and-plugins.min.js"></script>

<script type="text/javascript" src="../js/quicksand.js"></script>

That second version of jQuery (jquery-1.4.1-and-plugins.min.js) is overwriting the first one (jquery.min.js). If you need both, then you need to set them up using jQuery.noConflict (see here), otherwise, get rid of one of them, then include the tooltips and quicksand plugins after whichever one you keep. That should get rid of the tooltips error message you're getting

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.