Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-07-29 12:02:41


"Reece Dunn" <msclrhd_at_[hidden]> wrote in message
news:BAY7-F18T2dspjPybMx00032f43_at_hotmail.com...
> Jeff Garland wrote:

> >
> >Thanks, for the pointer on sync. I didn't read all the rationale.
I wish I
> >could come up with a more intuitive name -- it didn't hit me at
first what
> >sync was for. Anyway, I was using Firefox 0.9.1 on Linux. I
tested a
> >couple
> >more browsers: Galeon 1.3.12 and Epiphany 1.0.7 automatically
sync -- very
> >cool! Konqueror 3.2.0 does not :(
>
> Would it be possible to do the sync automatically via the JavaScript
> control? It could be possible to do something like:
>
> <a href = "javascript:tree.load('id.1.2')">Chapter 1.2: Cool
Stuff!</a>
>
> With load performing the URL redirection and synchronisation. I am
not sure
> how portable this would be, but having it done automatically would
mean that
> there would be less confusion and a simpler interface.

Yes, this is possible. I address this in documentation, but rather
obliquely: see http://tinyurl.com/3sdu6. Making library authors add
the javascript href violates the 'non-intrusive' requirement. It's
also difficult to maintain, since if the table of contents is
reorgainized the link may point to the wrong place.Of course, these
considerations disappear if the docs are automatically generated. But
it still violates the portability requirement, since no-script
browsers won't be able to follow links.

It also means that links to locations within the same page will cause
the browser to reload instead of just scrolling, which some might find
annoying.

Jonathan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk