[jQuery] Re: jscrollPane scroll to can't find first element

2008-05-20 Thread pedalpete
I got this to work, but not in the nicest way. It appears the script is adamant that I do not call .scrollTo within the following function [code] function getList(event, page){ $('#holdList')[0].scrollTo(0); var distance = $('#distance').val(); var addressQ = $

[jQuery] Re: jscrollPane scroll to can't find first element

2008-05-19 Thread pedalpete
Thanks Ariel, I forgot to mention, but I had also tried the [0].scrollTo, and that didn't work either. I've also just tried [code] var firstList = $('#holder .list:first'); $("#holder").jScrollPane(function(response){ ("#holder").scrollTo(firstList);

[jQuery] Re: jscrollPane scroll to can't find first element

2008-05-19 Thread Ariel Flesler
I THINK you need to do: $("#holder")[0].scrollTo(firstList); If you can't solve that part, you could check ScrollTo: http://flesler.blogspot.com/2007/10/jqueryscrollto.html Cheers -- Ariel Flesler http://flesler.blogspot.com/ On 18 mayo, 20:06, pedalpete <[EMAIL PROTECTED]> wrote: > Hey, >