Would please provide minimal examples?... for some reason in controller:

    return "jQuery(('.modal').modal('hide'))"

shows the line as text inside .modal-body.

Thanks in advance.

2016-11-09 13:15 GMT-03:00 Anthony <abasta...@gmail.com>:

> So, fixed it partially with web2py_component in the view, the web2py
>> component calls the form in the modal-body, and a few lines of js
>> toggle the modal, in this case the info is submited, but the modal
>> doesn't close and I would like to know if there's some way to catch the
>> web2py_component after de post event.
>>
>
> In the controller that handles the form submission, you could use
> response.js to return some Javascript code, which will be evaluated by the
> browser when the response is received. Alternatively, you could just add
> your own event handler in the browser to react to the form submission.
>
> 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.
>



-- 
-----BEGIN GEEK CODE BLOCK-----
version 3.1
GCS/GTW/| d? s+:+>+++ a-- C+++(+++++) UL++++>$ P++>+++ L+++>+$ E->+ W++>+
N>+++ o K- w---(++++)
O(--) M>-- V-- PS++ PE++>+ Y-->+ PGP+>+++ t-(?) 5? X++ R+ !tv b+++>++++
DI+++ D--- G+++>+++++
e+++>++++ h* r++>+++ y++
------END GEEK CODE BLOCK------

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