View Full Version : Drag/Drop grid and coordinates.

03-29-2012, 03:59 AM

I'm more looking for advice but any helpful examples would be great. So basically what I need to accomplish is a grid, that I can drop objects into, then save the coordinates.

So let's say I have a 3x3 set of tiles which will represent "floor tiles", and I load from my MySql database a users "furniture", what's the best method of being able to take these dynamic items drop them on a tile which can be then saved in an xml file or something.

What are the best j/s libraries for this? I know jQuery and mootools have drag and drop functions but can they accomplish what I'm looking for?

Any feedback will help, I'm comfortable coding in js but I want to do it effeciently and there's got to be people who have done similar things.