| re: forms using keyPress onChange to submit or not to submit
On 2005-12-30, awebguynow <i_dvlp@hotmail.com> wrote:
[color=blue]
> to submit or not to submit - that is the question
> and I'm going to be designing some lengthy forms, where many of the
> fields may be populated with data, and the user may only want to view
> it.
>
> In a perfect world, I'd have 2 buttons: Close and Submit - disabled
> and Submit would become enabled - immediately - if data was changed.
> otherwise the user could click "Close" and a php script could redirect
> (header) to Default pg.
>
> Any articles on this ? Has any one attempted this ? have advice ?[/color]
it doesn't sound like it will give much trouble.
start with submit enabled and disable it using javascript (so that users
with script turned off can still submit)
give the editable fields an onchange event handler that enables the submit
button
but anyway: what harm is there in always submitting?
Bye.
Jasen |