C
C
ChemAli2010-11-01 18:00:23
JavaScript
ChemAli, 2010-11-01 18:00:23

jQuery: how to catch transition event inside document by anchors?

The page is linked using anchors (A tags with the name parameter). Top of the table of contents: a list of links to the underlying subsections. Now I somehow catch such transitions using the scroll () event, but this is incorrect and buggy. How to do it right?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
C
CAH4A, 2010-11-06
@ChemAli

there is an awesome plugin

N
NeX, 2010-11-01
@NeX

check location.hash timeout

L
lashtal, 2010-11-01
@lashtal

brr… and what prevents your event from being clicked and hung?
$('a[name]').click(function(){
//your code
});
And if the content is at the top, then limit this event to clicking on links inside this block
$('#contents a').click()

A
aps, 2010-11-02
@aps

www.asual.com/jquery/address/

D
dimkalinux, 2010-11-06
@dimkalinux

Middleware for STB? :-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question