jquerytools/www — Issue #29: scrollable seekTo with callback. 
Author: d4n4
Created: 2011-11-06 16:26:06+00:00
State: open

Hello-

First thank you for writing this cool tool.

Does the seekTo() with function work so that all animation is complete prior to calling the function in the callback? ? If not how do I do this?

I've been working on a site (http://pie3.keene.edu/djc/index.html and the site uses your scrollable tool in conjunction with jQueryUI accordions and some ajax. I'm working on statefulness using hashes-
hash is read, looked up and a page index number and an accordion index is returned. Then I call the seekTo(index, function(){}) and within the function I make a call to open the accordion to the prescribed index. I'm finding that often when the site is responding to a bookmark, the page seems to be stopped 1/2 way through the scrolling to the page via seeTo() and the accordion is then opened. This sets the pages all offset by about 1/2 the screen- and I'm wondering if perhaps my call the the accordion API is being executed prior to the completion of the scrollable animation.

Can you assist? If there's no guarantee that the callback is waiting for the end of animation, is there a way to make this happen?

Best,

Dana