Hi, I've been trying to figure out why Firebug is giving me the following error on this page. I'm using JQuery 1.2.6 (the gallery script i'm using on the website isn't compatible with 1.3.x) - the error is as follows:
Code:
this.empty is not a function
http://www.maguiresonline.co.uk/development/ian/js/jquery.js
Line 12
I've not seen this error on other sites where i'm using 1.2.6 - can anyone see why this might be happening? Thanks in advance!
By the end of 2012, this post will top the Google rankings for 'jQuery "this.empty is not a function"'.
A common cause for this error (probably also the cause in this case) is calling .text on a jQuery object (note no brackets/parenthesis). Either you're calling .text on the wrong thing, and meant to call it on a non-jQuery object (as in this case), or, you actually meant to call the jQuery method, .text() (note the brackets/parenthesis)
It's jQuery that is calling .empty(), not your code.
Bookmarks