When I generate a menu like this:
<ul class="nav">
<li class="active"><a
onclick={{="web2py_component('%s','component-pane')"%URL('addressbook','contact.load')}}>Home</a></li>
<li><a
onclick={{="web2py_component('%s','component-pane')"%URL('calendar','openingHours.load')}}>Openingtijden</a></li>
..
</ul>
and in the view have this:
{{=LOAD('addressbook','contact.load',args=session.id,ajax=True,target='component-pane')}}
it works with out problem. However, when I replace the menu with:
<ul class="nav">
{{for _name,_active,_link in response.hub_menu:}}
<li {{if _active:}} class="active" {{pass}}>
<a
onclick="web2py_component('{{=_link}}'),'component')">{{=_name}}</a>
</li>
{{pass}}
</ul>
{{=LOAD('addressbook','contact.load',args=session.id,ajax=True,target='component-pane')}}
loads the page and exactly the same <a></a> elements are generated:
<a
onclick="web2py_component('/bootstrap/calendar/openingHours.load'),'component')">Create
organization</a>
however, when I click the link in the former menu a get openingHours.load
request is generated in the latter menu nothing happens, so in Net/XHR no
request is generated.
What am I missing in the latter menu that is not visible in the source?
Kind regards,
Annet.