I’m using Weavers excellent MooFX action quit a abit on this prodect, and I’m coming across an issue I can’t ignore.
Every single time I activate (trigger) an accordion, my browser focusses to the top of the page. This means when you are scrolled down the page, and trigger another accordion, you end up at the top of the page again, so you have to scroll down again and again and again …
Hi Richard,
The empty anchors (#) in the links cause some browsers to jump to the
top of the page when clicked. The browser looks for the anchor with
the name specified (in this case it is empty) and when it can’t find
it it simply jumps to the top of the page. I’ve seen this happen
before with the rollover actions. The solution would be to either
replace the empty anchor links with javascript:void() links or have
the action actually create real anchor tags for the accordion sections
and have the browser jump to these when the section is opened or closed.
If Weaver isn’t available to update the action I may have time later
in the week to create a patch action for you.
Regards,
Tim.
On 12 Jul 2009, at 13:44, Richard van Heukelum wrote:
Hello my friends,
I’m using Weavers excellent MooFX action quit a abit on this
prodect, and I’m coming across an issue I can’t ignore.
Every single time I activate (trigger) an accordion, my browser
focusses to the top of the page. This means when you are scrolled
down the page, and trigger another accordion, you end up at the top
of the page again, so you have to scroll down again and again and
again …
Wow, Tim … I would never have come up with that …
I’ll replace the links as you mentioned, and see what happens. They don’t need to be links, you know, I just wanted to create the underline-on-hover state. I’ll put some effort in it later today.
I didn’t know that part about the javascript:void(), Tim. I’ll have to try that out and see if it works because I was running into an issue with the jumping to the top earlier.