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

Reply via email to