Error message: "$(window).width is not a function"

Posted by Crippletoe on Stack Overflow See other posts from Stack Overflow or by Crippletoe
Published on 2010-04-28T09:39:42Z Indexed on 2010/04/28 9:43 UTC
Read the original article Hit count: 161

Filed under:
|

Hi all, i am trying to use a jQuery scrollbar called "Jscrollhorizontalpane". when i am trying to use it i get the following error message: "$(window).width is not a function" in firebug's console.

i am new to jQuery do this might be very basic but still, i dont know what that means and why there is a problem.

the scroller comes in a bundle with a few files, one of which is called "jScrollHorizontalPane.js" and i believe it holds the code for the scroller. i tried replacing $ signs there with the word "jQuery" (in case there is a conflict) but it didnt seem to help.

also important to add that on the same page i am using another jQuery scroller (a vertical one as opposed to the horizontal on mentioned above) which works just fine and when i examined it's .js file, i could spot lines with "$(window).width".

any ideas?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jscrollpane