[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Question about nested navbars

On Mon, Jul 17, 2000 at 01:59:16PM +0200, Stephan Petersen wrote:

> Hi Denis,
> thanks a lot for the quick reply.
> > This is indeed how it is supposed to work.
> > A workaround is to define in main navbar an empty epilog for selected
> > items:
> > 
> >    <navbar:define name=main_deu [...] >
> >       [...]
> >       <navbar:epilog></td></tr></navbar:epilog>
> >       <navbar:epilog type=S></navbar:epilog>
> >    </navbar:define>
> > 
> > and define header of submenu to ``</td></tr>''.
> This doesn't seem to help either, and you already had the right hunch what
> the reason would be :-)
> > You may still have problems with the javascript code inserted by inner
> > navbar, i guess i have to divert all javascript lines into <head>
> > section.
> You're right, the javascript code gets inserted right before the epilog,
> and thus the effect is the same...
> In case you plan on changing something about the javascript location, let
> me know, I'll gladly try out a wml snapshot.

You may try it yourself ;-)

Copy the definition of <javascript> from wml::std::tags and enclose the
<script>...</script> block between <head> and </head> if you use the
wml::std::page module.  If you have your own layout, divert the
javascript code into the HEAD section.

IMHO the best solution is to let <javascript> check whether the <head>
tag is defined and is a complex tag (with <symbol-info>). If so, write 
<head><script>....</script></head>, otherwise just write the script

Denis Barbier
WML Maintainer
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com