Fixed in trunk, although I have problems pushing to github this morning. On Wednesday, 8 August 2012 01:06:09 UTC-5, lyn2py wrote: > > Correction! > > Good news - the form submission works again. >> However, the form%20accepted is not resolved, >> > > The good news is correct and the form%20accepted is resolved. > Previously it didn't work because I downloaded a zip instead of cloning > git. > It works after I clone git. > > >> and also the member welcome at the top became: Logout | | PasswordProfile >> > > This part of the post is still true. > I tested this on the new welcome app and the bug in formatting is still > there. > > On Wednesday, August 8, 2012 1:52:20 PM UTC+8, lyn2py wrote: >> >> I updated to the latest version of web2py.js >> >> Good news - the form submission works again. >> However, the form%20accepted is not resolved, >> and also the member welcome at the top became: Logout | | PasswordProfile >> >> On Wednesday, August 8, 2012 11:36:51 AM UTC+8, Anthony wrote: >>> >>> Yes. Massimo, I think >>> http://code.google.com/p/web2py/source/detail?r=65caec4dae5f7c971d406beb0eb3b32f471d84a4 >>> broke >>> Ajax form submission. >>> >>> Anthony >>> >>> On Tuesday, August 7, 2012 11:20:44 PM UTC-4, lyn2py wrote: >>>> >>>> I've discovered a difference between the previous and the new is the >>>> form submission. >>>> >>>> The old version post has parameters >>>> for application/x-www-form-urlencoded. >>>> The new version post has no parameters. >>>> So it seems that the form was not POSTed at all? >>>> >>>> >>>> On Wednesday, August 8, 2012 11:06:53 AM UTC+8, lyn2py wrote: >>>>> >>>>> Ok, I found web2py.js. It is in the static folder of the app. >>>>> I took the new one from welcome app and replaced the one in my app. >>>>> >>>>> Now my code wouldn't work (my form was not processed). I'm still >>>>> trying to find out why. Any pointers will be helpful. Thanks. >>>>> >>>>> On Wednesday, August 8, 2012 9:22:23 AM UTC+8, Anthony wrote: >>>>>> >>>>>> I cannot reproduce the problem. Do you have the absolutely latest >>>>>> trunk, including the latest web2py.js? >>>>>> >>>>>> Anthony >>>>>> >>>>>> On Tuesday, August 7, 2012 5:16:06 PM UTC-4, lyn2py wrote: >>>>>>> >>>>>>> My code is simple >>>>>>> >>>>>>> form=SQLFORM(db.category) >>>>>>> if form.process().accepted: >>>>>>> response.flash = 'form accepted' >>>>>>> elif form.errors: >>>>>>> response.flash = 'form has errors' >>>>>>> return dict(form=form) >>>>>>> >>>>>>> views is using generic.load to LOAD into a dialog via ajax. >>>>>>> >>>>>>> I'm using the latest trunk. >>>>>>> >>>>>>> >>>>>>> On Wednesday, August 8, 2012 4:51:56 AM UTC+8, Anthony wrote: >>>>>>>> >>>>>>>> Are you using trunk (if not, can you try it -- including the trunk >>>>>>>> version of web2py.js)? Can you show your code? >>>>>>>> >>>>>>>> Anthony >>>>>>>> >>>>>>>> On Tuesday, August 7, 2012 4:21:16 PM UTC-4, lyn2py wrote: >>>>>>>>> >>>>>>>>> Spotted a small bug in response.flash: >>>>>>>>> >>>>>>>>> Normally when we submit a form, response.flash will appear "form >>>>>>>>> accepted" >>>>>>>>> However if it is a form submitted within dialog >>>>>>>>> box, response.flash will appear "form%20accepted" >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >> On Wednesday, August 8, 2012 11:36:51 AM UTC+8, Anthony wrote: >>> >>> Yes. Massimo, I think >>> http://code.google.com/p/web2py/source/detail?r=65caec4dae5f7c971d406beb0eb3b32f471d84a4 >>> broke >>> Ajax form submission. >>> >>> Anthony >>> >>> On Tuesday, August 7, 2012 11:20:44 PM UTC-4, lyn2py wrote: >>>> >>>> I've discovered a difference between the previous and the new is the >>>> form submission. >>>> >>>> The old version post has parameters >>>> for application/x-www-form-urlencoded. >>>> The new version post has no parameters. >>>> So it seems that the form was not POSTed at all? >>>> >>>> >>>> On Wednesday, August 8, 2012 11:06:53 AM UTC+8, lyn2py wrote: >>>>> >>>>> Ok, I found web2py.js. It is in the static folder of the app. >>>>> I took the new one from welcome app and replaced the one in my app. >>>>> >>>>> Now my code wouldn't work (my form was not processed). I'm still >>>>> trying to find out why. Any pointers will be helpful. Thanks. >>>>> >>>>> On Wednesday, August 8, 2012 9:22:23 AM UTC+8, Anthony wrote: >>>>>> >>>>>> I cannot reproduce the problem. Do you have the absolutely latest >>>>>> trunk, including the latest web2py.js? >>>>>> >>>>>> Anthony >>>>>> >>>>>> On Tuesday, August 7, 2012 5:16:06 PM UTC-4, lyn2py wrote: >>>>>>> >>>>>>> My code is simple >>>>>>> >>>>>>> form=SQLFORM(db.category) >>>>>>> if form.process().accepted: >>>>>>> response.flash = 'form accepted' >>>>>>> elif form.errors: >>>>>>> response.flash = 'form has errors' >>>>>>> return dict(form=form) >>>>>>> >>>>>>> views is using generic.load to LOAD into a dialog via ajax. >>>>>>> >>>>>>> I'm using the latest trunk. >>>>>>> >>>>>>> >>>>>>> On Wednesday, August 8, 2012 4:51:56 AM UTC+8, Anthony wrote: >>>>>>>> >>>>>>>> Are you using trunk (if not, can you try it -- including the trunk >>>>>>>> version of web2py.js)? Can you show your code? >>>>>>>> >>>>>>>> Anthony >>>>>>>> >>>>>>>> On Tuesday, August 7, 2012 4:21:16 PM UTC-4, lyn2py wrote: >>>>>>>>> >>>>>>>>> Spotted a small bug in response.flash: >>>>>>>>> >>>>>>>>> Normally when we submit a form, response.flash will appear "form >>>>>>>>> accepted" >>>>>>>>> However if it is a form submitted within dialog >>>>>>>>> box, response.flash will appear "form%20accepted" >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>
--

