The link looks right. Maybe you can debug the output of the for loop to see if there is any unexpected value on it. And you might want to look at the html source in the browser for checking that the link data is correct.
On Monday, May 7, 2012 6:02:17 AM UTC-3, Annet wrote: > > 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. >