views:

144

answers:

2

I downloaded the latest jquery.scrollTo from the plugins site. Is there an obvious reason why the minified version does not work? With the exact same code the console throws the error:

$.scrollTo is not a function

For info this is my only statement:

$.scrollTo('-=600px', 400, { axis:'y' });

A: 

Check for the closing ; after each statement. It is optional but the minifization makes it required.

Marek
Thanks - just edited the question. I am using ;
strangerpixel
Not your code, check it at scroll minified version.
Zote
A: 

The minified version does work, make sure you're including it correctly, e.g. that your server relative location, permission, etc works...try accessing it directly in your browser.

You can see a working demo here using: http://demos.flesler.com/jquery/scrollTo/js/jquery.scrollTo-min.js (don't hotlink, this is just a demo showing the minified version works)

Nick Craver
Thanks - it works now, and I can't replicate the error.
strangerpixel