[Cartoweb-users] Adding a new TAB into cartoweb3 menu (JAVASCRIPT???)

Helder Muianga helder.muianga at uem.mz
Fri Sep 8 08:06:59 EDT 2006


I was analising this code from the CARTOCLIENT.TPL file (located in the
folder: C:\wamp\www\cartoweb3\projects\PROJECT_NAME\templates).

I altering the skin plus I want to add a new tab. In the cartoweb3 demo
project, there are the following tabs:
PRINT, ABOUT, HELP, THEMES, SEARCH, OUTLINE, QUERY.
They were all generated by the following code (in the cartoclient.tpl file):

...
...
 <div id="leftbar">
   <div>
     <ul id="tabnav2">
       <li id="label2"><a href="javascript:ontop(2)">{t}Print{/t}</a></li>
       <li id="label4"><a href="javascript:ontop(4)">{t}About{/t}</a></li>
       <li id="label6"><a href="javascript:ontop(6)">{t}Help Viewer{/t}</a></li>
     </ul>
     <ul id="tabnav1">
       <li id="label1"><a href="javascript:ontop(1)">{t}Themes{/t}</a></li>
       <li id="label3"><a href="javascript:ontop(3)">{t}Search{/t}</a></li>
       <li id="label5"><a href="javascript:ontop(5)">{t}Outline{/t}</a></li>
       <li id="label7"><a href="javascript:ontop(7)">{t}Query{/t}</a></li>
     </ul>
....
...

I adde a new tab as: 
       <li id="label8"><a href="javascript:ontop(8)">{t}Test{/t}</a></li>

When I run the project, It appears but is not active. I perform a click and nothing happens... (I don't know how to make this new tab active as the others are)

What's wrong???

Hélder M.C. Muianga
Cell: 82-47 27 160
Formado em Sistemas de Informação
E-mail alternativo:hmuianga at yahoo.com

"LUTE PELAS TUAS CONVICÇÕES, MESMO QUE ISSO TE CUSTE UMA LÁGRIMA"
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060908/a810701e/attachment.html


More information about the Cartoweb-users mailing list