Hi
I have a SQLFORM which I embed in my web page using LOAD. If I successfully
save the data in the database I want to pass the saved data back as part
response.js. The idea is that a user enters data via the SQLFORM, it is s
saved to the db and the data returned to the client where I add it to a
dynamically generated table.
In my controller I have:
def entry():
form = SQLFORM(db.timeline)
if form.process().accepted:
data = ??????
response.js = "console.log(" + data + ")"
return dict(form=form)
Any idea how I get request.vars and convert them to json?
cheers
Dave
--
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.