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

Re: lost javascript code for navbar



On Wed, Jan 17, 2001 at 11:05:56PM +0100, Remco van den Berg wrote:
> After upgrading to wml-2.0.x I miss the following java script code in
> my HTML output files:
> 
> function nb_imgNormal(imgName) {
>     if (document.images) {
>         document[imgName].src = eval(imgName + "_n.src");
>         self.status = '';
>     }
> }
> function nb_imgSelect(imgName) {
>     if (document.images) {
>         document[imgName].src = eval(imgName + "_s.src");
>         self.status = '';
>     }
> }
> function nb_imgOver(imgName, descript) {
>     if (document.images) {
>         document[imgName].src = eval(imgName + "_o.src");
>         self.status = descript;
>     }
> }
> 
> Has somebody experienced the same problem?
> If so, what's going wrong, and what's the solution?

Hi Remco,

wml::des::navbar (1) contains an explanation (read <navbar:jsfuncs>
section). You may find this is overcomplicated, but i had to face with
many different situations, and did not find a better solution.

> PS I found my solution for the the <prog> in <compound>
>    But why is the <prog> gone in wml-2.0.x?

Don't remember exactly why. Anyway, you could use <group> instead, and
  <let prog=group>
should make your pages WML 2.x compatible. There are some explanations
on the README.mp4h file.

-- 
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