Tuesday, July 19, 2016

ajax checkboxes vs submit button


At the office we are talking about an interface on our web application, which has ajaxified checkboxes: you click it, and the change is live. No "action" is performed other than changing data on the server. One group doesn't like this and prefers a submit button, and others of us prefer the ajax version.


This got me to thinking about when to use both, and my intuition says that the ajax version is better for one-off operations, whereas a submit button is better for batch operations where the user will change a number of the check boxes at once, and then hit 'go'. I'm not much of a designer though. Any thoughts on this issue?



Answer



As with all these things it depends. Both approaches are equally valid but you have to consider some other factors:





  • Batch operations - you've already covered this, but it usually better to have a "submit" button if there are several settings the user can update in one go.




  • Visibility - is the result of the change immediately visible - i.e. can the user see straight away that they've made the change, either directly in the application or via some feedback from the server? Usually if you are changing a value on a server that feedback is missing so having an immediate change might not be appropriate. This leads on to:




  • Permanence - can the user immediately undo the action without problems? So if they click the check box and then realise they shouldn't have, can they undo the action by simply clicking the check box again? If so then an immediate update should be OK, but if not (e.g. they have to restore data etc.) then there really should be an extra step asking for confirmation and that's usually on a "submit" button.





No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...