You cannot do this using
{{=MENU(...)}}
You must make your own menu
<ul>
<li><a href="#" onclick="ajax(
'{{=URL(request.application, 'dopy', 'new')}}',[],
'DetailArea'
)" />New</a></li>
...
</ul>
Massimo
On Apr 23, 10:52 am, Keith Edmunds <[email protected]> wrote:
> Am I trying to do something stupid or impossible?
>
> > Does anyone have any sample code showing how to call the Web2py 'ajax'
> > function from a menu? I currently have this as a link on a page, and I'd
> > like to move it to a menu item:
>
> > <a href="#" onclick="ajax(
> > '{{=URL(request.application, 'dopy', 'new')}}',[], 'DetailArea'
> > )" />New</a>
>
> --
> |Keith Edmunds
> |Tiger Computing Ltd
> |"The Linux Specialists"
> |
> |Tel: 033 0088 1511
> |Web:http://www.tiger-computing.co.uk
> |
> |Registered in England. Company number: 3389961
> |Registered address: Wyastone Business Park,
> | Wyastone Leys, Monmouth, NP25 3SR
>
> --
> Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en