Thanks Anthony,

I confirm that Replacing request.cid with
request.env.http_web2py_component_element made the trick.


Is there any reason why when ajax is false it is not stored in  request.cid ?


On Tue, Jun 14, 2011 at 3:44 AM, Anthony <[email protected]> wrote:

> On Monday, June 13, 2011 9:00:55 PM UTC-4, 黄祥 wrote:
>>
>> pardon, me, what's cid used for? is it mandatory to use trap?
>> thank you so much.
>>
>
> All components (with or without ajax=True) are wrapped in a DIV, which is
> given an id. You can specify the id via the 'target' argument to LOAD() --
> if you do not specify it, one is generated automatically. For ajax
> components, the id is stored in request.cid so it can be accessed if needed.
> If you want to trap a link via the 'cid' argument to the A() helper, you
> need to know the component id. See
> http://web2py.com/book/default/chapter/13#Client-Server-Component-Communications
>  for
> more details.
>
> Anthony
>



-- 
Sebastian E. Ovide

Reply via email to