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" >>>>>> >>>>>> >>>>>> >>>>>> --