[jQuery] Interface scrollTo - needing callback functionality (attn Stefan)

2007-08-23 Thread jsw_nz

According tot he documentation on the Interface website the scrollTo
method should support callback functions. I am not sure if it does,
upon looking at the source. From Stefan's website:

durationinteger or string  > mandatory
callbackfunction > optional Callback function that will get fired
once the effect is completed.
easing  string > optional The name of the easing effect you
want to use.


I am seeking to run the scrollTo function first - in the following
scenario:

scrollTo > to top of page (500ms)
fadeOut > page container (500ms)
ajax > call ajax method to load new content (CMS server request)
FadeIn > page container with new content (500ms)

Has anybody managed to get the callback to file after the scrollTo is
completed?
I am not sure of the syntax - have tried several schemes
- I have tried: several tests - trying to trigger a simple alert
function
- as the basis of connecting it to the fadeOut > Ajax > fadeIn
function which is working

function alertMe(){
   alert("finished");
}

this does not trigger alertMe() upon completion:

function scrollToTopAnchor(){
   $("#top").ScrollTo(1000,'easeinout',function() {
  alertMe();
   });
}

this triggers alertMe() before completion:
$('#top').ScrollTo(1000,'easeinout',alertMe());

Since I am more a designer than a coder,
any suggestions (or workarounds) would be appreciated.

cheers
(-john-)



[jQuery] [Interface] ScrollTo

2007-07-21 Thread debussy007


Hi,

I am using the ScrollTo function of interface but I can notice that it is
not very fluid scrolling...

I use it to scroll my header on all the pages except the main page.
So I have put it in the jQuery(document).ready   function,
so that when the user clicks on the page, it automatically scroll header and
go on content.

If anyone has any tips to improve the scrolling, let me know! Thank you !
-- 
View this message in context: 
http://www.nabble.com/-Interface--ScrollTo-tf4122985s15494.html#a11725473
Sent from the JQuery mailing list archive at Nabble.com.