proposed fix:
gluon.main :
just after setting web2py-component-command, set a new
web2py-component-origaction header = request.url
web2py.js :
in ajax_page, inside oncomplete, just before web2py.trap_form, handle it
var origaction = xhr.getresponseheader('web2py-component-origaction');
action = (typeof origaction != 'undefined') ? origaction : action;
and it works.
Just for completeness, same type of handling in updatePage to change the
w2p_remote of the cid to web2py-component-origaction
Of course, this stands as long as there's really no method to extrapolate
on the oncomplete callback the "final url" that has been loaded, in which
case, no gluon.main changes necessary.
--
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].
For more options, visit https://groups.google.com/d/optout.