You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

onBeforeSeek does not work if on last item Created Oct 5, 2009

This thread is solved

Views: 1276     Replies: 1     Last reply Oct 7, 2009  
You must login first before you can use this feature

joel_unger

Posts: 4

Registered:
Jun 13, 2009

onBeforeSeek does not work if on last item

Posted: Oct 5, 2009

It seems that the onBeforeSeek function got a little "smarter" with the update and doesn't work if you're on the last page/item.

From the 1.1.1 release notes:
"scrollable fixed a bug where the onBeforeSeek and onSeek callbacks were called although the seeking position did not change. this won't happen anymore."

The problem is, I need it to work, because my function in the onBeforeSeek adds a new item via ajax call for the seek to scroll to.

I don't see a problem with calling the onBeforeSeek even if there is no new position. Can you change it back?

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» onBeforeSeek does not work if on last item

Posted: Oct 7, 2009

Reply to: onBeforeSeek does not work if on last item, from joel_unger
If you think logically then onBeforeSeek should not be called if there is no need to scroll. The fact that it may not harm your setup cannot be generalized to all environments. You need to find some sort of workaround for this.

I've had thoughts of making a working AJAX'ed scrollable setup some day.