On Thursday, July 3, 2014 7:56:39 AM UTC-4, Richard wrote:
>
> Now I encounter a difference between a LOAD and a link like the following:
>
> <li>{{=A(T("Add " + session.im_labels['vpu']) 
> ,_href=URL('internal','add_entity.load', vars=dict(com=com, sif=sif)), 
> ajax=True, cid='internal_data_div') }}</li>
>

Note, "ajax" is not an argument of A(), so will be ignored.
 

> I assume this link is equal to {{=LOAD('internal','add_entity.load', 
> vars=dict(com=com, sif=sif)), ajax=True, cid='internal_data_div') }}
>

Note, "cid" is not an argument of LOAD(), so will be ignored, and instead, 
a random target id will be created as the cid.
 

> But a form acceptance defined in this add_entity form does not react on 
> the response.js
>
> if form_add_entity.process(form_name='add_entity').accepted:
>      response.js= '$web2py.component("%s", target="navigation_div");' % 
> URL('default', 'navigation.load')
>

Can you confirm that the form is being processed and accepted? Does the 
returned Ajax response include a "web2py-component-command" header with 
that JS code?

Anthony

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to