Subject:
|
Re: Disabling HTML form button if any changes made to an edit box?
|
Newsgroups:
|
lugnet.publish.html
|
Date:
|
Mon, 2 Jun 2003 11:16:53 GMT
|
Viewed:
|
2455 times
|
| |
| |
On Mon, Jun 02, 2003 at 05:20:56AM +0000, Todd Lehman wrote:
> p.s. The application here is that I want to prevent accidental
> posting of messages where the user has forgotten to preview the
> message. After Preview is clicked and the preview is displayed, the
> Post button should be enabled. But if any changes are made, then the
> Post button should be immediately disabled.
why use JS? just combine the post and preview button to one, and detect
on the server if the data was changed. If it was, preview, if it
wasn't (matches a CRC in a hidden form element), it posts.
--
Dan Boger
dan@peeron.com
|
|
Message has 2 Replies:
Message is in Reply To:
19 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|