You can name your components

LOAD(....,target="xyz")

and serverside check it:

if request.cid=="xyz"


On Aug 21, 5:38 am, Jurgis Pralgauskis <[email protected]>
wrote:
> hello,
>
> when using LOAD, I can have several components on one page,
> but that is a bit of problem, when I need to know, which component
> called my new request..
>
> in one case I just wanted to return the previous content (which I
> could get with http_referer in traditional way),
> but now request.env.http_referer gives the main page, not the
> component from which request went.
>
> It could be probably workarounded via session.var or  request.args ,
> but probably would be usefull to have in general LOAD (or
> web2py_component) "framework".

Reply via email to