jQuery UI Sortable – Save Position and Open/Close
Posted Sep 2nd, 2010 by Conor in in JavaScript,Languages,PHPI wrote a bit for the Furasta.Org overview page yesterday. I decided to share what I wrote (re-written independent from Furasta.Org) because when writing it I couldn’t find anything online documenting it. I know there are things like this – WordPress’s Dashboard is one example – but it didn’t seem to be documented anywhere.
Demo
Download Example
I’m not going to go into the details of how it’s done. If you download the well documented example, you should be able to figure out how it works. Any suggestions for improvement are welcome.
This example is somewhat different from how it is actually done in Furasta.Org, where I use the caching system to store files based on the user’s id insuring that each user can have their own separate configuration. The key difference, noted in the documentation, is that in Furasta.Org I don’t know how many divs need sorting because the plugin architecture has access to what I have called ‘Overview Items’. So to deal with that issue I created a class to deal with the items, which is visible here.