Re: [jQuery] Smooth page scrolling between internal anchors

2007-02-08 Thread [-Stash-]
I've just tested it at http://exhibitq.com/talk/discussion/1/html-test/#Comment_5 http://exhibitq.com/talk/discussion/1/html-test/#Comment_5 and it's still not working. Basically, that internal link and the "Top of Page" and "Bottom of Page" links work exactly as expected. However, if you the

Re: [jQuery] Smooth page scrolling between internal anchors

2007-02-08 Thread [-Stash-]
I don't suppose this got fixed in Interface 1.1.2 did it? Stefan Petre wrote: > > It is a bug. I will fix it. > > [-Stash-] wrote: >> I have a problem with it though. Scrolling between anchors on the same >> page >> works perfectly, but when trying to go to another page, the links don't >> wo

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-18 Thread [-Stash-]
Karl Swedberg-2 wrote: > > I was planning to post this at learningjquery.com eventually, but > since you asked... > > Here is what I do to apply the ScrollTo() feature of Interface to > only same-page links. OK, so I've found a strangeness. It might be in my implementation of your code, b

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-18 Thread [-Stash-]
Thanks Karl, that works perfectly. I'm still looking forward to the official bug-fix, but this will tide me over great in the mean time :) Karl Swedberg-2 wrote: > > I was planning to post this at learningjquery.com eventually, but > since you asked... > > Here is what I do to apply the Scr

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-18 Thread Karl Swedberg
I was planning to post this at learningjquery.com eventually, but since you asked... Here is what I do to apply the ScrollTo() feature of Interface to only same-page links. Note that I have it look only inside #main- content, but you can remove or replace that. By the way, I had to start w

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-18 Thread Stefan Petre
It is a bug. I will fix it. [-Stash-] wrote: > Many thanks to Stefan for helping me with this off list. > > > If anyone else wants to get this working with a single external file, so > your header has something like this in it: > > > >

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-18 Thread [-Stash-]
Many thanks to Stefan for helping me with this off list. If anyone else wants to get this working with a single external file, so your header has something like this in it:

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread Stefan Petre
[-Stash-] wrote: > Stefan Petre wrote: > >> David Duymelinck wrote: >> >> I made this a plugin. $(document).ScrollToAnchors(500); >> >> This will make all the a href=#anchor to animate to the element. Will be >> released when jQuery 1.1 is released. >> > > Does it work with 1.1a? If so wo

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread David Duymelinck
>> [-Stash-] schreef: >> >> >>> Code snippet: >>> -- >>> $('[EMAIL PROTECTED]"#"]').each(function(i){ >>> $(this).click(function(){ >>> $(this.href).ScrollTo(2000); >>> return false; >>> }); >>> }); >>> --

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread [-Stash-]
Stefan Petre wrote: > > David Duymelinck wrote: > > I made this a plugin. $(document).ScrollToAnchors(500); > > This will make all the a href=#anchor to animate to the element. Will be > released when jQuery 1.1 is released. Does it work with 1.1a? If so would you be willing to give me a sn

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread Stefan Petre
David Duymelinck wrote: > Stefan Petre schreef: > >> I made this a plugin. $(document).ScrollToAnchors(500); >> >> This will make all the a href=#anchor to animate to the element. Will be >> released when jQuery 1.1 is released. >> >> > Nice. but wouldn't it be better to use a name="a

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread Luke Scammell
Thanks for that, it'll help me with fine tuning it, however, it still doesn't work with all the internal anchors on the page. Is all the code correct to do that? Is the rest of my plugin what's gone wrong (as I said, very new to JS)? Thanks for the quick reply :) Luke David Duymelinck wrote

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread David Duymelinck
Stefan Petre schreef: > I made this a plugin. $(document).ScrollToAnchors(500); > > This will make all the a href=#anchor to animate to the element. Will be > released when jQuery 1.1 is released. > Nice. but wouldn't it be better to use a name="anchor"? Anchors don't need href . Are there

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread Stefan Petre
David Duymelinck wrote: > [-Stash-] schreef: > >> Code snippet: >> -- >> $('[EMAIL PROTECTED]"#"]').each(function(i){ >> $(this).click(function(){ >> $(this.href).ScrollTo(2000); >> return false; >> }); >> }); >> --

Re: [jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread David Duymelinck
[-Stash-] schreef: > Code snippet: > -- > $('[EMAIL PROTECTED]"#"]').each(function(i){ > $(this).click(function(){ > $(this.href).ScrollTo(2000); > return false; > }); > }); > -- > http://techfoolery.com/archiv

[jQuery] Smooth page scrolling between internal anchors

2007-01-08 Thread [-Stash-]
Hi, I'm very new to both jQuery and Javascript, but I love what it can do so far. I'd like to be able to create a plugin that enables smooth scrolling when you click on an internal anchor link on a page. It would be beneficial to users as it provides feedback that you are not going to a differe