开发者

JQuery Sortable design question

I am creating a web page in which users can click on a + button to add a new text box, enter some text and choose to reorder textboxes (I plan on using JQuery sortable). They can also delete textboxes as and when they开发者_开发知识库 please.

My question is should I be persisting the changes they are making as and when they make a change (by doing a ajax call) or should I have a Save button that the user would click to save the changes they have made. In the latter approach, I need to maintain all the changes on the client side and persist the state when they click on Save (and I feel this approach is more performant)

Any thoughts on what approach to use?


It depends on if the UI leads the user to believe their changes will or will not be lost. Meaning, if they perform the sorts, deletes...etc and close the browser or loose connectivity for whatever reason, will they be upset about losing those changes? If yes, then AJAX and persist all changes.


I would save the changes on the client and possibly have some form of 'save draft' function that periodically saved the data to a temporary location on the server so the user doesn't loose all their data if something goes wrong. Alternatively, cookies could be used as another temporary storage area.


This issue actually has nothing to do with jQuery - it is a usability design issue.

From a user perspective, I like how Google Docs saves my progress as I go along. As a developer, I know that is more complicated to code.

You ultimately have to think about how the user will be using this table - are they using it as a scratchpad and want the control of saving? Or do they need up-to-the-second saves done for them?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜