On Aug 1, 2008, at 7:27 PM, Jean-Vincent Drean wrote:
On Fri, Aug 1, 2008 at 6:05 PM, Guillaume Lerouge <[email protected]> wrote:
Popular vote, please get us out of this usability trap ;-)
Ok, forget about the 2 different version, I've mixed the 2 behaviors with a POJW (Plain Old JavaScript Ha^Wworkaround) [1] consisting in using CSS poperties display/visibility to deactivate/activate anchors at will.
- 1st behavior (don't forget to clear your browser's cache), go there and click on any tab : http://jv.myxwiki.org/xwiki/bin/view/Main/ The viewport is not moving. - 2nd behavior, go here : http://jv.myxwiki.org/xwiki/bin/view/Main/#Comments or there : http://jv.myxwiki.org/xwiki/bin/view/Main/#History The viewport is moved to the corresponding extra section.
I guess this one is ok for everyone, right ? :)
yep, perfect :) Thanks -Vincent
[1] : For the curious :
if (triggeredByURL) { // Yes, this is a POJW (Plain Old JavaScript Ha^Wworkaround) which // prevents the anchor 'jump' after a click event but enable it // when the user is arriving from a direct /Space/Page#Section URL $('hiddenanchors').className = 'invisible'; location.href='#' + extraID; $('hiddenanchors').className = 'hidden'; }
JV. _________