I have no idea what is to do. Please help.
I have built a website with draggable scaleable items on a page. You can see what I've done here... http://www.hagueandhague.co.uk/test/hagueandhague/httpdocs/index.html
It uses java script from... http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js
What I need the site to do is remember the position and scale of the items so that when visitors return to the site the items are where they left them.
I believe it is possible to store this information in a cookie, however I have no idea how to do that or make it work.
Any help would be great, but even better if it's in english/layman's.
Thanks in advance.
James.
This will work straight out of the box - #pick-right being the div to drag.
In "layman" terms, you want to use the Draggable plugin's
stop
callback to get the position of the element and save it to a cookie using the jQuery cookie plugin. Then when the user returns, read the cookie and re-position the elements.To re-position the element when the user returns:
More info:
http://jqueryui.com/demos/draggable/
https://github.com/carhartl/jquery-cookie