[jQuery] Re: Automatic scrolling

2010-01-04 Thread macgyver47
Thanks for advice but your answer doesn't help as you cannot generate
a click on "a" link with jQuery
I have used this solution on other pages and it works great but in
this particular case:
I would like visitor to be scrolled automatically to particular spot
on page depending on radio button being clicked
I am looking for something like:

jQuery('input#oui').click(function(){
jQuery('div#reponse1').show('slow');
jQuery('div.postpop').show('slow');
jQuery('div#reponse2').hide('fast');
jQuery('div#reponse3').hide('fast');

jQuery(SCROLLTO-automatically-to-paragraph1);

});

Still trying to find answer
Jean

On 4 jan, 16:45, Paul Hutson  wrote:
> > Thanks for help
>
> This should do what you want (well, it's an example, but I'm sure you
> can pull out the bits you need) 
> :http://www.position-relative.net/creation/anchor/
>
> It'll smooth scroll to the right location for you... :)
>
> (we've also used it on the help for Outer Empires, 
> here...http://gameview.outer-empires.com/Info/Newbie.asp)
>
> HTHs,
> Paul Hutson


[jQuery] Re: Automatic scrolling

2010-01-04 Thread Paul Hutson

> Thanks for help

This should do what you want (well, it's an example, but I'm sure you
can pull out the bits you need) : 
http://www.position-relative.net/creation/anchor/

It'll smooth scroll to the right location for you... :)

(we've also used it on the help for Outer Empires, here...
http://gameview.outer-empires.com/Info/Newbie.asp)

HTHs,
Paul Hutson


[jQuery] Re: Automatic scrolling?

2007-05-29 Thread Dan G. Switzer, II

>I have a web page with a user-selectable number of quiz questions.
>Each question is in a list element.  Sometimes users select 250 quiz
>questions which is a lot...
>
>I wanted to solicit thoughts about automatically scrolling to the next
>question when a choice is made (when a radio button is selected)...
>Is there any support in jQuery which would allow me to get the next
>list element object (that's easy), then scroll the window so that the
>next list element is positioned neatly at the top of the window?

If it makes sense w/in your application, I'd be tempted to show just one
question at time instead of scrolling them around. You could still attach
this behavior at runtime...

-Dan



[jQuery] Re: Automatic scrolling?

2007-05-29 Thread Karl Swedberg
I think the ScrollTo or ScrollToAnchors functions in the Interface FX  
module would work well for what you're trying to achieve:


You can check out the documentation for them here:

http://interface.eyecon.ro/docs/fx


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On May 29, 2007, at 11:23 AM, Jonathan Sharp wrote:


What is the HTML structure of your document?

Yes, it is possible though.

Cheers,
-js


On 5/29/07, SamCKayak <[EMAIL PROTECTED]> wrote:

I have a web page with a user-selectable number of quiz questions.
Each question is in a list element.  Sometimes users select 250 quiz
questions which is a lot...

I wanted to solicit thoughts about automatically scrolling to the next
question when a choice is made (when a radio button is selected)...
Is there any support in jQuery which would allow me to get the next
list element object (that's easy), then scroll the window so that the
next list element is positioned neatly at the top of the window?

Sam






[jQuery] Re: Automatic scrolling?

2007-05-29 Thread Jonathan Sharp

What is the HTML structure of your document?

Yes, it is possible though.

Cheers,
-js


On 5/29/07, SamCKayak <[EMAIL PROTECTED]> wrote:



I have a web page with a user-selectable number of quiz questions.
Each question is in a list element.  Sometimes users select 250 quiz
questions which is a lot...

I wanted to solicit thoughts about automatically scrolling to the next
question when a choice is made (when a radio button is selected)...
Is there any support in jQuery which would allow me to get the next
list element object (that's easy), then scroll the window so that the
next list element is positioned neatly at the top of the window?

Sam