what's the view?
On May 20, 9:26 am, "David J." <da...@styleflare.com> wrote: > I saw the video on creating components; > > I tried following the steps outline there; > > For some reasons I must have missed a step because the message post > table is not uploading; > > Here is the code I think is not working correctly. > > def reload(target): > def js(form): > response.js = 'web2py_component("%s","%s")' % (URL(target),target) > > return js > > def posts(): > postform = SQLFORM(db.posts,onaccept=reload('post_text')) > > I changed the example a bit from the one you used because you used a > Crud Form; but I just used SQLFORM instead which shouldn't really matter. > > Thanks.