Thanks for your quick response.
Op vrijdag 21 december 2012 06:14:25 UTC+1 schreef rochacbruno het volgende:
>
> if not request.ajax:
> response.menu = _menu()
>
> On Thu, Dec 20, 2012 at 1:52 PM, Martijn Hermans
>
> > wrote:
>
>> When I handle a request in Web2Py it builds a menu in models/
if not request.ajax:
response.menu = _menu()
On Thu, Dec 20, 2012 at 1:52 PM, Martijn Hermans
wrote:
> When I handle a request in Web2Py it builds a menu in models/menu.py.
> This behaviour is exactly what I want for a normal request, but I want to
> skip this, when I make an ajax-call.
>
> I
I've just started using web2py and have a question about ajax calls.
In my project a menu is defined (and build) in models/meny.py).
The menu is added to the response like this : response.menu = _menu()
In this way I can access the menu in my layout and that is exacly what I
want, except...
When I handle a request in Web2Py it builds a menu in models/menu.py.
This behaviour is exactly what I want for a normal request, but I want to
skip this, when I make an ajax-call.
Is this possible?
thx,
Martijn
--
http://gluonframework.wordpress.com/2010/03/07/web2py-ajax-and-forms/
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...
5 matches
Mail list logo