April 7th, 2018, 02:23 PM
-
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.
April 7th, 2018, 05:25 PM
-
Because it's not a function. Were there any other Javascript errors? Did you properly $.fn.extend() to add that function?
April 7th, 2018, 09:16 PM
-
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
April 7th, 2018, 09:20 PM
-
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
April 9th, 2018, 11:07 AM
-
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
April 9th, 2018, 11:08 AM
-
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.