#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2005
    Location
    Vancouver, WA, USA
    Posts
    396
    Rep Power
    189

    TypeError: $(...).scrollable is not a function


    TypeError: $(...).scrollable is not a function

    I'm sure this is a noob mistake, but after searching via Google for the last few hours, that means I'm not the only JS noob out there.

    I am not a JS/jQuery programmer, but sometimes I must stick my feet in. I am helping someone with this, or at least trying.

    Code:
    $(document).ready(function(){ 
    	$(".scrollable").scrollable(); 
    });
    The page is located here:
    http://weddingadvisor.com/profiles/878665
    Then click on Photo Gallery

    I have made multiple attempts with jQuery.noConflict() but am still pulling my hair out.

    This version of the jquerytools includes jquery.

    Gracias!
    Thomas Tremain
  2. #2
  3. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,749
    Rep Power
    9397
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2005
    Location
    Vancouver, WA, USA
    Posts
    396
    Rep Power
    189
    Originally Posted by requinix
    Do you have scrollable installed and added to the page?
    Yes, it is part of this library:

    Code:
     <script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
    Thomas Tremain
  6. #4
  7. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,749
    Rep Power
    9397
    You're including the scripts out of order: the tools script is in the <head> but jQuery itself isn't loaded until the <body>.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2005
    Location
    Vancouver, WA, USA
    Posts
    396
    Rep Power
    189
    Originally Posted by requinix
    You're including the scripts out of order: the tools script is in the <head> but jQuery itself isn't loaded until the <body>.
    jquery is loaded as PART of that library.. But this could still be the issue, because jQuery being loaded in the body, means it's being loaded twice... I hadn't noticed it was being loaded again.

    Crossing my fingers
    Thomas Tremain
  10. #6
  11. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,749
    Rep Power
    9397
    Originally Posted by ttremain
    jquery is loaded as PART of that library..
    Uh, no?
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2005
    Location
    Vancouver, WA, USA
    Posts
    396
    Rep Power
    189
    I did manage to clean up the error message.

    Still trying to work out a couple things in the library itself, so I'm making progress.

    Thanks for looking
    Thomas Tremain

IMN logo majestic logo threadwatch logo seochat tools logo