如何使用iGoogle上的可拖动部分? [英] How to use draggable sections like on iGoogle?
问题描述
查看iGoogle时,每个部分都可以拖放到页面上的任何其他位置,然后保存页面状态。我很好奇这是如何完成的,因为我想提供此功能作为概念证明的一部分?
When viewing iGoogle, each section is able to be drag-and-dropped to anywhere else on the page and then the state of the page is saved. I am curious on how this is done as I would like to provide this functionality as part of a proof of concept?
UPDATE
如何设置以便为下次加载保存更改的布局?我猜这是某种cookie?
How do you make it so that the layout you changed to is saved for the next load? I am going to guess this is some sort of cookie?
推荐答案
任何最新的客户端框架都会提供这种功能。
Any up-to-date client side framework will give that kind of functionality.
- jQuery
- YUI
- GWT
- Prototype
仅举几例...
关于数据的保存(持久性,如果你愿意),这取决于你网站的后端,但这通常是通过异步调用完成的到通常将状态保存到DB的服务器。
Regarding the "saving" (persistency, if you will) of the data, this depends on the back-end of your site, but this is usually done via an asynchronous call to the server which saves the state to a DB (usually).
这篇关于如何使用iGoogle上的可拖动部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!