Re: [boost] Re: Javascript Tree Control [was: Serialization Menu]

Jeff Garland wrote:
On Wed, 28 Jul 2004 09:41:22 -0600, Jonathan Turkanis wrote
On Tue, 27 Jul 2004 21:19:38 -0600, Jonathan Turkanis wrote (I was able to do it with right mouse on the right pane, open in new window/tab). However, is there a way to get the address bar to
"Jeff Garland" <jeff@crystalclearsoftware.com> wrote in message news:20040728115709.M55567@crystalclearsoftware.com... point to the
right frame instead of the left pane so that the current URL is immediately accessible? My major objection to frames is that I can't see and grab the current URL...
I agree. See http://tinyurl.com/3sdu6.
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.
Oh, and I'm of course in support of boost-book initiatives to generate these capabilties -- after all, transformation to various forms is the whole point of getting the docs into xml...
Exactly. Regards, Reece _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger

"Reece Dunn" <msclrhd@hotmail.com> wrote in message news:BAY7-F18T2dspjPybMx00032f43@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
participants (2)
-
Jonathan Turkanis
-
Reece Dunn