Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use draggable sections like on 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

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?

like image 448
Ascalonian Avatar asked Mar 02 '09 16:03

Ascalonian


2 Answers

Any up-to-date client side framework will give that kind of functionality.

  • jQuery
  • YUI
  • GWT
  • Prototype

Just to name a few...

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).

like image 148
Yuval Adam Avatar answered Sep 27 '22 21:09

Yuval Adam


NETTUTS has a tutorial on putting one of these together with jQuery.

like image 39
ceejayoz Avatar answered Sep 27 '22 20:09

ceejayoz