Hi bartb,

My take on the problem is that it might be better (in some cases) not
to make a mapping between 2 series of elements on the page based on
their ordering.  Perhaps a better way (in terms of accessibility
anyway) would be to slap an id on the div, and then use an internal
link for the anchor, e.g. <a href="#xyz" class="toggler">...,<div
id="xyz" class="stretcher">
Then instead of having to wire the anchors to the divs and using
'this.stretcher', when a toggler is clicked upon, you can parse the
href (this.location.hash.substring(1)) to find out which stretcher to
toggle.
This method would have the added benefit that those without JavaScript
on (e.g. googlebot) can better navigate your page.

Eoghan
http://qatano.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to