#1
  1. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,536
    Rep Power
    221

    Uncaught TypeError: $(...).fitText is not a function


    Hi;

    Why do I get this error?

    Code:
    Uncaught TypeError: $(...).fitText is not a function
    I am using document ready and the file exists as well.
  2. #2
  3. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,796
    Rep Power
    9646
    Because it's not a function. Were there any other Javascript errors? Did you properly $.fn.extend() to add that function?
  4. #3
  5. Wiser? Not exactly.
    Devshed God 2nd Plane (6000 - 6499 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    6,265
    Rep Power
    4193
    You probably shouldn't be including multiple copies of jQuery. Not sure if that is your issue, but it may be. Pick the newest version of jQuery that works and include only that.
    Recycle your old CD's



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
  6. #4
  7. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,796
    Rep Power
    9646
    Oh, there was a link? I didn't see it - not like they're underlined or anything.

    Assuming FixText is working fine,
    1. You load one set of jQuery
    2. You load FitText which will extend jQuery
    3. You load another jQuery, which may (would explain the problem) or may not overwrite the first jQuery with a new one, losing FitText in the process
  8. #5
  9. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,536
    Rep Power
    221
    Originally Posted by kicken
    You probably shouldn't be including multiple copies of jQuery. Not sure if that is your issue, but it may be. Pick the newest version of jQuery that works and include only that.
    You got it right again
  10. #6
  11. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,536
    Rep Power
    221
    I am a careless coder but I spend so much time I eventually get things working.

    Sometimes I wish I was smarter. That would save me time.

IMN logo majestic logo threadwatch logo seochat tools logo