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

Javascript missing



Hello,

I've got a problem after migrating from 1.7.0 to 2.0.6 (I know, I slept
for a long time! ;-) and yes, I had the define-container-to-define-tag -
related-with-endtag-required-problem ;-) ):
I use 2.0.6 under RH 7.0, i.e. perl 5.6.0.
The problem ist, that the Javascript functions for navbars won't be
generated, while using sub navbars.
I'm just getting errors like:
------------------------------------------------------------------------------------------
JavaScript Error:
file:/var/local/offshore/aktuelle_Projekte/mohme/version_0_3/nodistr/wml/service-al.html,
line 93:
nb_imgOver is not defined. 
... (lots of)
------------------------------------------------------------------------------------------

Whereas this code would be generated correctly:
------------------------------------------------------------------------------------------
<!-- Hiding the code
if (document.images) {
    nb_img1_artshop_s = new Image();
    nb_img1_artshop_s.src = 'img/button-artshop-p.gif';
    nb_img1_artshop_o = new Image();
    nb_img1_artshop_o.src = 'img/button-artshop-p.gif';
...
------------------------------------------------------------------------------------------

Has anybody got any clue for that behaviour ? What can I do ?

Thanks for any helpful comment!

cu - Michael

Here's the code:
# ========================== Navbar Begin ======================================
##
##  The main Navigation Bar [left, vertically]
##

#   define the navigation bar through a grammar
<navbar:define name=navbar imgstar=":-p:-p"
               imgbase="$(IMG)" urlbase="$(ROOT)">
  <navbar:header>
  </navbar:header>
  #   button prolog
  <navbar:prolog>
    <tr><td>\
  </navbar:prolog>
  #   the buttons itself
  <navbar:button id=artshop    url=artshop-ash.html
txt="Artshop"         img=button-artshop*.gif>
  <navbar:button id=news       url=news.html
txt="News"            img=button-news*.gif>
  <navbar:button id=service    url=service-al.html
txt="Service"         img=button-service*.gif>
  <navbar:button id=galerie    url=galerie-w-001.html
txt="Galerie"         img=button-galerie*.gif>
  <navbar:button id=gaestebuch url=gaestebuch.html
txt="G&auml;stebuch"  img=button-gaestebuch*.gif>
  <navbar:button id=presse     url=presse_mappe_uebersicht.html
txt="Pressemappe"     img=button-presse*.gif>
  <navbar:button id=email      url=email.html                   txt="Email
schicken"  img=button-email*.gif>
  #   button epilog
  <navbar:epilog>\
    </td></tr>\
  </navbar:epilog>
  <navbar:footer>
  </navbar:footer>
</navbar:define>

..PAGE_NAVBAR>>\
  <navbar:jsfuncs>
  <table cellspacing=0 cellpadding=0 border=0>\
    <navbar:render name=navbar select=$(area) $(page:+subselected)>
  </table>
<<..
# ========================== Navbar End ========================================
# ========================== Navbar Begin ======================================
##
##  The Sub Navigation Bar (SNB) [top, horizontally]
##

#   define the <snb>...</snb> tag
<define-tag snb endtag=required>
  #   1. define the navigation bar through a grammar
  <navbar:define name=snb urlbase="$(ROOT)" imgbase="$(IMG)"
                 imgstar=":-p:-p">
    #   bar header
    <navbar:header>\
      <table cellspacing=0 cellpadding=0 border=0><tr>\
    </navbar:header>

    #   button prolog
    <navbar:prolog>\
          <td align=center>[&nbsp; \
    </navbar:prolog>

    #   ...here the <snb_button> tags will occur...
    %body

    #   button epilog
    <navbar:epilog>\
          &nbsp;]&nbsp;&nbsp;</td> \
    </navbar:epilog>

    # last button epilog of a line
    <navbar:epilog pos=10>\
          &nbsp;]</td></tr><tr>\
    </navbar:epilog>

    # last button epilog of a line
    <navbar:epilog pos=20>\
          &nbsp;]</td></tr><tr>\
    </navbar:epilog>

    # last button epilog of a line
    <navbar:epilog pos=30>\
          &nbsp;]</td></tr><tr>\
    </navbar:epilog>

    # last button epilog
    <navbar:epilog pos=last>\
          &nbsp;]</td>\
    </navbar:epilog>
    #   bar footer
    <navbar:footer>\
      </tr></table></font>
    </navbar:footer>
  </navbar:define>

  ..PAGE_SUBNAVBAR>>\
  <navbar:render name=snb select="$(page)">\
  <<..
</define-tag>

<define-tag snb_button>
  <navbar:button %attributes>
</define-tag>

..PAGE_SUBNAVBAR!>>
&nbsp;
<<..

$(page:*# )$(page:+#include ")$(SNB_RC:-.wmlsnb)$(page:+")
# ========================== Navbar End  ========================================

The submenu files contain all the same like ....
e.g. artshop.wmlsnb:
====================
<snb>
  <snb_button id=ash url="artshop-ash.html" txt="Art Shop"         >
  <snb_button id=pk  url="artshop-pk.html" txt="Postkarten"        >
  <snb_button id=gk  url="artshop-gk.html" txt="Gru&szlig;karten"  >
  <snb_button id=kd  url="artshop-kd.html" txt="Kunstdrucke"       >
  <snb_button id=kl  url="artshop-kl.html" txt="Kalender"          >
</snb>




-- 
Michael Kress / kress@hal.saar.de / coroner@irc
http://www.michael-kress.de
To increase system performance press CTRL+D now.
P E N G U I N S   A R E   C O O L.

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