This raises an issue. If somebody is using web2py 2.0 with a legacy app and 
the old web2py.js there may be problems with flash.

On Tuesday, 7 August 2012 20:22:23 UTC-5, 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"
>>>>
>>>>
>>>>
>>>>

-- 



Reply via email to