2009/10/2 brian <bally.z...@gmail.com>: > > On Fri, Oct 2, 2009 at 8:32 AM, Giovanni Battista Lenoci > <gian...@gmail.com> wrote: >> >> Cecil Westerhof ha scritto: >>> >>> I want to disable a form when I submit it. The first reason is because >>> I do not want the form submitted more as once. For this I could >>> disable the submit button(s). But I also want the values not be >>> changed during the submit. Is this possible? >>> >> >> On the beforesubmit event add the readonly attribute to every field. >> >> Should work.. :-) >> > > I like that idea but another might be to (after the form has > submitted) add a new submit handler for the form that simply returned > false.
The problem with that is that the fields still can be changed. I prefer that this is not possible. A simple method would be to hide the form. But that is not very pleasing to the eyes I am afraid. -- Cecil Westerhof