I'm using the ajax strategy suggested by mdipierro here
https://groups.google.com/d/msg/web2py/5rIQhH-RD28/Rp54nhJ1j28J
My code looks like this:
In default.py:
def update_stackItems():
stackID = request.args[0]
stack = session.stack_dict[int(stackID[5:])]
return
response.render(URL('default','update_stackItems.html'),{'stack':stack})
The only relevant line is the return. When this gets sent back to the page
it renders with the generic view for a dict (so it just shows the contents
of stack, which at least tells me that that is working), but I want it to
use update_stackItems.html. It happens no matter how simple I make my view,
so I know it's not an error inside the view. I've checked that the URL is
the correct URL for the view I want, why isn't response.render using it?
--
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.