I'm trying to achieve the same thing so if anybody managed to get this working some help would be highly appreciated.
I've created a single column sidebar with portlets based on http://ui.jquery.com/demos/sortable/#portlets For the cookie I then adapted the code from this tutorial http://www.shopdev.co.uk/blog/sortable-lists-using-jquery-ui/ So far I've got a working sidebar which remembers the positions of the portlets, however it does not remember whether or not they are expanded or collapsed. I know I need to store the state of each element as well as the order in the cookie but since I only started with jQuery a couple of days ago so I'm pretty clueless about how to create the array(s) to do so. Is is possible to store value pairs and then retrieve them effectively from a cookie? E.g. item-1, open, item-2, closed, item-3, open. If so how do I write the code to store it in the cookie and then retrieve it correctly. I guess I could set a new cookie for each portlet everytime the click function for the minimise or expand is called however that isn't exactly an elegant solution. -- View this message in context: http://www.nabble.com/saving-portlet-state-tp21951006s27240p22360154.html Sent from the jQuery UI Discussion mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---