Doyley Posted May 13, 2008 Share Posted May 13, 2008 Hi all, I have been using http://script.aculo.us/ to create draggable blocks which is working fine but I would like to store the positions in a MySQL database so they will remain there when a user logs in again. Is there an example of this knocking about anywhere? Thanks! Quote Link to comment Share on other sites More sharing options...
HaLo2FrEeEk Posted May 18, 2008 Share Posted May 18, 2008 Try looking to see if the scriptaculous library has something that tracks when a block is moved, and everytime the block is moved, send the data set to a php page that can update a mysql field. You then need to find out whether scriptaculous has a built in function for positioning the blocks before displaying them, and if it does, get the information using the php page, from the database and set the positions, then display the page. I haven't used scriptaculous in a while, since there was no real need for it with what I do, but I do know what it is. Just check to see if it has those functions and if it does, then you've got a starting place. You need an onchange attribute, and a set position function, to start. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.