In that case 'redirect(URL('bak','swed'), client_side=True)' console is
clear, and no actions for user. My code now:
ajaxAnswer = '["11"]'
return ajaxAnswer
JS
function showMsg(data) {
data = JSON.parse(data);
...
else if (data[0]==11) {
document.location.replace("https://oas.timacad.ru/application/bak/swed");
}
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/56f15652-1b98-43a8-8759-d43edcfaf9ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.