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
- [web2py] Re: When would one load a component with ajax=... apple
- [web2py] Re: When would one load a component with ... pbreit
- [web2py] Re: When would one load a component w... apple
- Re: [web2py] Re: When would one load a com... anil manikyam
- [web2py] Re: When would one load a compone... Anthony
- [web2py] Re: When would one load a compone... pbreit
- Re: [web2py] Re: When would one load a... Sebastian E. Ovide
- Re: [web2py] Re: When would one load a... Anthony
- Re: [web2py] Re: When would one load a... Anthony
- Re: [web2py] Re: When would one load a... Stifan Kristi
- Re: [web2py] Re: When would one load a... Anthony
- Re: [web2py] Re: When would one load a... Stifan Kristi
- Re: [web2py] Re: When would one load a... Sebastian E. Ovide
- Re: [web2py] Re: When would one load a... Anthony
- Re: [web2py] Re: When would one load a... pbreit
- Re: [web2py] Re: When would one load a component with a... anil manikyam

