[daisy] Determining active tab when invoking editor

Bruno Dumon bruno at outerthought.org
Sun Jul 23 14:22:47 CDT 2006


On Sun, 2006-07-23 at 18:37 +0200, Andreas Deininger wrote:
> Hi,
> 
> I have a document with multiple daisy html-parts, say part1, part2, part3.
> If I invoke the document editor on this document, the tab "part1" is
> always active.
> What I would like to do is providing a link which instantly makes tab
> "part2" or "part3" active.
> Is there an easy way to achieve that? I would like to use something like:
> 
> <form method="POST" action="/daisy/mySite/185/edit" id="myid">
> </form>
> <a onclick="document.getElementById('myid').submit(); return false;"
> href="#" class="">Edit part 2</a>
> 
> Can I achieve the desired behaviour/result easily? (e.g. by placing a
> hidden input field inside the form definition or by adding a request
> parameter to the action URL?) (I saw that the name of the tab is
> appended in the path after the continuation ID)
> http://127.0.0.1:8888/daisy/mySite/185/edit/continuationID/misc
> 

Nope, this is not possible. Upon initialisation the editor redirects you
to the first tab. This could be made configurable in some way though, as
we already have some editor initialisation stuff:
http://cocoondev.org/daisydocs-1_5/daisywiki/general/60/297.html

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list