Daiksuke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-14  14:25 UTC
Horizontal scrolling
I can''t seem to get Scriptaculous to scroll horizontally to a div. How can this be done? Thanks in advance, Matt. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
- How are you trying this - What happens? On Aug 14, 10:25 am, "Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I can''t seem to get Scriptaculous to scroll horizontally to a div. How > can this be done? > > Thanks in advance, > Matt.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Daiksuke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-14  19:53 UTC
Re: Horizontal scrolling
Thanks for your reply.
The piece of code looks like this:
<a href="#" onclick="new
Effect.ScrollTo(''fifth''); return false;"
title="go to fifth section"><img src="img/contact.png"
alt="Contact" /></a><br/>
But when clicked, it does nothing at all. No movement, flickering,
anything.
I''ve tried replacing the # in the link with a javascript void, and
I''ve tried placing the onclick on the image instead, which
didn''t
help.
I''ve correctly included all the javascripts, fading works just great.
When I exclude my CSS file, it also works, but then it is just
vertical scrolling. Are there any CSS commands that might interfere
with scrolling?
On Aug 14, 9:17 pm, Diodeus
<diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> - How are you trying this
> - What happens?
>
> On Aug 14, 10:25 am,
"Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > I can''t seem to get Scriptaculous to scroll horizontally to a
div. How
> > can this be done?
>
> > Thanks in advance,
> > Matt.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Daiksuke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-15  11:51 UTC
Re: Horizontal scrolling
I''ve made a small test page here: http://www.eenportfolio.nl/mangafique/test.html As you can see, it just doesn''t scroll horizontally. On Aug 14, 9:17 pm, Diodeus <diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> - How are you trying this > - What happens? > > On Aug 14, 10:25 am, "Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I can''t seem to get Scriptaculous to scroll horizontally to a div. How > > can this be done? > > > Thanks in advance, > > Matt.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Yes. That is strange. The effect seems to be looking at the sum of the
dimensions, not the positions.
Just to see what happens, I tried this and it works:
<h1>script.aculo.us ScrollTo effect functional test</h1>
<a href="#" onclick="new
Effect.ScrollTo(''xx'')">scroll last-heading</
a>
<div style=''height:2000px''></div>
<h2 id="xx" style="position:relative;">Heading
2</h2>
Although this doesn''t solve your problem, it may give you some ideas
for a work-around.
On Aug 15, 7:51 am, "Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''ve made a small test page
here:http://www.eenportfolio.nl/mangafique/test.html
> As you can see, it just doesn''t scroll horizontally.
>
> On Aug 14, 9:17 pm, Diodeus
<diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > - How are you trying this
> > - What happens?
>
> > On Aug 14, 10:25 am,
"Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > > I can''t seem to get Scriptaculous to scroll horizontally
to a div. How
> > > can this be done?
>
> > > Thanks in advance,
> > > Matt.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Daiksuke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-16  15:02 UTC
Re: Horizontal scrolling
I couldn''t find a work around, so I''ve stepped over to Mootools. Thanks for your help anyhow. :] On Aug 15, 10:03 pm, Diodeus <diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Yes. That is strange. The effect seems to be looking at the sum of the > dimensions, not the positions. > > Just to see what happens, I tried this and it works: > > <h1>script.aculo.us ScrollTo effect functional test</h1> > <a href="#" onclick="new Effect.ScrollTo(''xx'')">scroll last-heading</ > a> > <div style=''height:2000px''></div> > <h2 id="xx" style="position:relative;">Heading 2</h2> > > Although this doesn''t solve your problem, it may give you some ideas > for a work-around. > > On Aug 15, 7:51 am, "Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I''ve made a small test page here:http://www.eenportfolio.nl/mangafique/test.html > > As you can see, it just doesn''t scroll horizontally. > > > On Aug 14, 9:17 pm, Diodeus <diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > - How are you trying this > > > - What happens? > > > > On Aug 14, 10:25 am, "Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I can''t seem to get Scriptaculous to scroll horizontally to a div. How > > > > can this be done? > > > > > Thanks in advance, > > > > Matt.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Daiksuke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-16  15:07 UTC
Re: Horizontal scrolling
I couldn''t find a work around, so I''ve stepped over to Mootools. Thanks for your help anyhow. :] On Aug 15, 10:03 pm, Diodeus <diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Yes. That is strange. The effect seems to be looking at the sum of the > dimensions, not the positions. > > Just to see what happens, I tried this and it works: > > <h1>script.aculo.us ScrollTo effect functional test</h1> > <a href="#" onclick="new Effect.ScrollTo(''xx'')">scroll last-heading</ > a> > <div style=''height:2000px''></div> > <h2 id="xx" style="position:relative;">Heading 2</h2> > > Although this doesn''t solve your problem, it may give you some ideas > for a work-around. > > On Aug 15, 7:51 am, "Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I''ve made a small test page here:http://www.eenportfolio.nl/mangafique/test.html > > As you can see, it just doesn''t scroll horizontally. > > > On Aug 14, 9:17 pm, Diodeus <diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > - How are you trying this > > > - What happens? > > > > On Aug 14, 10:25 am, "Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <Daiks...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I can''t seem to get Scriptaculous to scroll horizontally to a div. How > > > > can this be done? > > > > > Thanks in advance, > > > > Matt.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---