Fixed. :)

The problem was with the way on how i build the unordered list (i'm
using jinja2 templates) and some issues with css.

Ty.

On 15 jan, 20:09, Giuliani Sanches <giulianisanc...@gmail.com> wrote:
> I have the jquery working fine ( $("a").click to show an alert
> messages do the job) but i can't get the treeview plugin to work. My
> html code:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> <html>
>   <head>
>     <title></title>
>
>     <link rel="stylesheet" type="text/css"
>     href="/static/css/style.css" >
>
>     <script type="text/javascript"
>       src="/static/js/jquery.js"></script>
>     <script type="text/javascript"
>       src="/static/js/jquery.treeview.js"></script>
>
>     <script type="text/javascript">
>       $(document).ready(function(){
>           $('#treemenu').treeview();
>           });
>     </script>
>
>   </head>
>   <body>
>     <div class="body">
>
> <h1>Bem vindo ao controle de frota</h1>
>
>       <div id="mainmenu">
>         <a href="/">Home</a>
>       </div>
>
>       <div id="appmenu">
>         <ul id="treemenu">
>             <li> Cadastros </li><ul>
>             <li><a href="/localidades/listar/estado">
>               Estados</a></li>
>             <li><a href="/localidades/listar/cidade">
>               Cidades</a></li></ul>
>
>         </ul>
>       </div>
>
> <p>
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec orci
> nulla, mollis sed, ultricies non, viverra nec, risus. Nam luctus, pede
> in aliquam ultrices, massa mauris pretium nunc, tincidunt lacinia
> mauris augue dictum eros. Aenean eleifend. Donec eget nulla eu nulla
> rutrum viverra. Morbi pulvinar sollicitudin justo. Sed condimentum.
> Vestibulum consectetur neque. Pellentesque odio. Curabitur ut pede.
> Nam fermentum mi eget lacus.
> </p>
>     </div>
>   </body>
> </html>
>
> Ty.

Reply via email to