Thanks for your quick response.

Op vrijdag 21 december 2012 07:14:32 UTC+1 schreef Massimo Di Pierro het 
volgende:
>
> if not request.ajax: ....
>
> On Thursday, December 20, 2012 9:35:02 AM UTC-6, Martijn Hermans wrote:
>>
>> 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 am doing a ajax call. 
>>
>> Is there a way to skip building my menu when I'm using a ajax call?
>>
>>
>>
>>

-- 



Reply via email to