In one of my application the header and footer are rendered once, the 
content is loaded using web2py_component.
My problem is that the menu in the header does not reflect the state of the 
content. In the view that renders the
menu I have the following line of code

<li class="">
   <a onclick="web2py_component('{{=_link}}', 
'content')">{{=_name.replace('_', ' ').capitalize()}}</a>
 </li>

Is it possible to add code to the onclick event which sets the class of the 
li item to "active"

Kind regards,

Annet

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to