Sure.
In a products.html file I call the .load file:
{{=LOAD('hp','hp.load', ajax=True, target='div_hp')}}
At the beginning of the hp.load file I would like to put a test:
{{if hp.load has not been load in products.html:}}
...
{{pass}}
The Leonel suggestion is a good solution, passing caller like a var.
Il giorno venerdì 20 marzo 2015 14:54:49 UTC+1, JorgeH ha scritto:
>
> Could you post the code for you are trying to achieve?
>
>
> On Friday, March 20, 2015 at 8:18:34 AM UTC-5, Gael Princivalle wrote:
>>
>> Hello all.
>>
>> Is there a way to test inside a .load file if it have been loaded inside
>> a .html file?
>> 'request.function' return always the .load file.
>>
>> Thanks, regards.
>>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.