It's not clear how that would be related to response.js, as it appears the 
code returned via response.js is in fact being executed in the browser. 
It's hard to say what's going wrong in the browser without knowing more 
about the JS and what the DOM looks like at that point.

Anthony

On Sunday, August 27, 2017 at 8:16:19 PM UTC-4, 黄祥 wrote:
>
> it seems response.js have a different behaviour in new version
> e.g. (the same code work well in 2.14.6)
> ...
> if form.process().accepted:
> ...
>     target_response = "jQuery('#test .close').click(); 
> jQuery('#test').get(0).reload()"
>     response.js =  target_response
>     #redirect(request.env.http_web2py_component_location, client_side = 
> True)
>
> in 2.14.6, after the form submited it automatically reload the web2py 
> component and the page still responding, while in the latest version the 
> modal is closed, the component data is reload with new value but the page 
> is not responding, just have the dark silouette of the page, the solution 
> is must refresh the page or append :
> redirect(request.env.http_web2py_component_location, client_side = True)
> is it normal or did i missed something in the latest version ?
>
> thanks and best regards,
> stifan
>

-- 
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