The perfect mix. Bravo ;-)
Guillaume

On Fri, Aug 1, 2008 at 7:49 PM, Vincent Massol <[EMAIL PROTECTED]> wrote:

>
> 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.
> > _________
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://blog.xwiki.com/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to