Re: [web2py] Web2Py and Ajax

2012-12-21 Thread Martijn Hermans
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/

Re: [web2py] Web2Py and Ajax

2012-12-20 Thread Bruno Rocha
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

[web2py] Web2Py and Ajax

2012-12-20 Thread Martijn Hermans
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...

[web2py] Web2Py and Ajax

2012-12-20 Thread Martijn Hermans
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 --

[web2py] web2py and ajax

2010-03-07 Thread mdipierro
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...