To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publish.htmlOpen lugnet.publish.html in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / HTML / 295
294  |  296
Subject: 
Re: Disabling HTML form button if any changes made to an edit box?
Newsgroups: 
lugnet.publish.html
Date: 
Mon, 2 Jun 2003 14:20:19 GMT
Viewed: 
2325 times
  
In lugnet.publish.html, Dan Boger wrote:
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.

Sounds great in theory, and I think the CRC is a great fallback check if JS
isn't available, and I like that the CRC method is forgiving of undone
changes...  But if there were only one button, what would you label it?
"Preview or Post"?

One way to avoid that ambiguity could be to label the submit button "Post" by
default and then relabel it "Preview" if any of the text changes.  That still
requires JS, of course, but should degenerate acceptably if JS isn't
available...it would just need to output a note or something at the top saying
that the message hadn't been posted yet because it had changed.

What do you think?  Is there a disambiguous static name for the Preview/Post
button or would relabeling it dynamically be the least confusing?

--Todd



Message has 1 Reply:
  Re: Disabling HTML form button if any changes made to an edit box?
 
Quoting Todd Lehman <todd@lugnet.com>: (...) I'd think label it "Preview" on the initial submit, then "Preview/Post" in the preview page. JS would be difficult to deal with undone changes, as well as confusing - "There was the post button there, and (...) (21 years ago, 2-Jun-03, to lugnet.publish.html)

Message is in Reply To:
  Re: Disabling HTML form button if any changes made to an edit box?
 
(...) 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. (21 years ago, 2-Jun-03, to lugnet.publish.html)

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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR