On 4/9/07, Jeroen Coumans <[EMAIL PROTECTED]> wrote:


On 9 apr, 00:59, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> Is the effect something like this?http://www.intuit.com/ (Click
quicklinks at the top right)

Thanks, yes that's the same effect, except we have quite some large
sections that slide out on top.

> Anyway, I would definitely shy away from scrolling the page.  It's not
the
> natural action.  Did you guys get data saying the users were confused?

We haven't done any usability testing yet (still prototyping), but
since we have quite some large slideout sections, some of which are
bigger than 1 screen, having them slide up means that you're left in
the middle of the document. The effect you see is as if you've
scrolled the document down, instead of sliding the section up. An
obvious solution is thus to scroll up before we slide up :-) Unless
you have other suggestions, besides making the sections smaller?

And can somebody please help me with the correct syntax for achieving
this? I'm quite new at Javascript, although jQuery is definitely
making it very easy! Instead of parallel execution of the ScrollTo and
slideToggle, I want them to execute one after another. How should I
adjust the following code?

$('.toggle').click(function() {
  $('#slideout').ScrollTo('slow').slideToggle('slow');
});

Jeroen Coumans


Most jQuery functions have a callback function.  Which basically means, it
doesn't run the callback until the first part is done.

SlideUp has is like this:
function slideTest() {
$("#slideTest").slideUp("slow",function(){
     window.scrollTo(0, 1500)
});
}

To see advanced "smooth scrolling" check out this previous thread.
http://www.nabble.com/Re%3A-ScrollTo-Functionality-p6684782.html

If you post an example online, I could look at it and make suggestions.
One possibility is (although, without seeing it, this might not be good)
Slide open an area 300px tall with overflow:auto.  This will slide open an
area that the user can see and interact with, but it would also have
scrollbars.  Again, this might be terrible.  I am just brainstorming. :)

Hope the callback thing works for you.

Glen

Reply via email to