开发者

Implementing Save as Draft Feature for a Web Application Using Javascript and Mootools

Hey guys I need to implement "Save as Draft" Feature. The logic for this that I have thought about goes this way.

Logic: On click of "Save as Draft" button I would add an event to store the contents of my web applicationin a temp db and return the control to Home Page.

Problem: Implementation using js and mootools if incase there are some features av开发者_开发百科ailable in this framework .


If you're looking for something similar to how StackOverflow and other Stack Exchange sites "save" your question, even if you exit the browser and come back... then what Ryan suggested (localStorage) is what you'd be looking to implement.

More info

Hell, even if not, try using it anyway. The only downside is that localStorage is HTML5, and thus support in older browsers is spotty at best. (For all intents and purposes, IE8+ and FF3.5+ support localStorage)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜