Uhm... I really dunno. As I told you, the plugin won't react to clicks
on the Back button.
I intend to take another look at this asap.

Try putting the window.scrollTo line outside the document.ready.

On Thu, Mar 5, 2009 at 1:28 PM, clorentzen <carl.lorent...@gmail.com> wrote:
>
> Ariel --
>
> Thanks again for responding. I've tried a few more things, but the
> links from another page targeting my scrolling page still seem to work
> unreliably. I'm in FF3 mainly, but can see the issue in Safari 3 and
> IE6 and 7 as well.
>
> Sometimes the links to "site two" and "site three" on this page work
> exactly as intended (scrolling over to the appropriate place), and
> other times they merely load the page basically at 0,0.
>
> http://www.cementresources.com/paneltest/hub.html
>
> The problem with links off my hub.html page doesn't occur every time,
> though... Which has me even more confused, since sometimes it seems to
> work, but if I immediately go "back" in the browser and try the link
> on hub.html again, it might not work the second or third time.
>
> And if I refresh the scrolling page once loaded (which has a hash in
> the URL noting the selected anchor), the same problem occurs:
> sometimes the page reloads scrolled over to the correct spot, other
> times it just seems to reset the window to 0.0.
>
> Let me know if you have any ideas. Appreciate the help. Thanks.
>
> --Carl.
>
>
> On Mar 4, 5:39 pm, Ariel Flesler <afles...@gmail.com> wrote:
>> It seems to be working well for me, on FF2.
>> Using the back button won't animatedly scroll, the plugin isn't
>> monitoring those changes.
>>
>>
>>
>> On Wed, Mar 4, 2009 at 7:28 PM, clorentzen <carl.lorent...@gmail.com> wrote:
>>
>> > Ariel --
>>
>> > Thanks for your reply. If I go to my test page from one of the full
>> > URLs with an anchor, and then refresh the page, I still have the
>> > problem -- namely, it resets to the beginning of the page and doesn't
>> > properly scroll to the anchor location in the URL. Also, when I click
>> > my "site two" link, the subsequent properly scrolls all the way from
>> > the left to the anchor location, but the "site three" link seems to
>> > scroll over only from 100 or so pixels from the anchor location. Any
>> > ideas why these things might be happening? Thanks again.
>>
>> > I've updated my sample/test page with the new code you provided.
>>
>> >http://www.cementresources.com/paneltest/hub.html
>>
>> > Best,
>>
>> > --Carl.
>>
>> > On Mar 4, 5:04 pm, Ariel Flesler <afles...@gmail.com> wrote:
>> >> I think that happens because you first need to reset the scroll to
>> >> (0,0).
>> >> The browser also scrolls natively.
>>
>> >> I'm planning to add this within $.localScroll.hash, as well as taking
>> >> advantage of sync animations, added since 1.3.
>> >> But for now... :)
>>
>> >> $(document).ready(function(){
>> >>    window.scrollTo(0,0);
>> >>    $.localScroll.hash({
>> >>       axis:'x',
>> >>       duration:1500
>> >>    });
>> >>    $('#container').localScroll({
>> >>      axis:'x',
>> >>      hash:true,
>> >>      duration: 1000
>> >>   });
>>
>> >> });
>>
>> >> --
>> >> Ariel Fleslerhttp://flesler.blogspot.com
>>
>> >> On Mar 4, 3:47 pm, clorentzen <carl.lorent...@gmail.com> wrote:
>>
>> >> > Sorry, I hit "post" button too quickly there...
>>
>> >> > You can see an example linking to a test page here:
>>
>> >> >http://www.cementresources.com/paneltest/hub.html
>>
>> >> > I've seen the issue in FF3, Safari 3, and in IE 6 and 7.
>>
>> >> > Not sure what I'm doing incorrectly. Any help appreciated. Thank you!
>>
>> >> > On Mar 4, 1:43 pm, clorentzen <carl.lorent...@gmail.com> wrote:
>>
>> >> > > Hi --
>>
>> >> > > I'm using theLocalScrollplugin, and having trouble getting it to
>> >> > > work when passing the anchor through as part of the URL. Instead of
>> >> > > scrolling to the appropriate anchor id, the window just moves a few
>> >> > > pixels and stops.
>>
>> >> > > CallingLocalScrollon links within the page works fine, but not when
>> >> > > the link is coming from another page or typed directly in the browser
>> >> > > address bar.
>>
>> >> > > My code for initializingLocalScrollis:
>>
>> >> > > $(document).ready(function(){
>> >> > >     $.localScroll.hash({
>> >> > >         axis:'x',
>> >> > >         duration:1500
>> >> > >     });
>> >> > >     $('#container').localScroll({
>> >> > >         axis:'x',
>> >> > >         hash:true,
>> >> > >         duration: 1000
>> >> > >     });
>>
>> >> > > });
>>
>> --
>> Ariel Fleslerhttp://flesler.blogspot.com
> >
>



-- 
Ariel Flesler
http://flesler.blogspot.com

Reply via email to