Creating a Drag and Drop page
Posted: Thu Sep 21, 2006 1:10 pm
Hi, I am trying to build a drag and drop page in php but I can't seem to find the answer. This is what I want to do:
I want to build a site for example to build a classroom. I have a CREATE CLASSROOM page, in which the teacher can sort of Draw the tables for the students of the classroom (an image of a circle) draging and droping them on the screen.
I made a quick sketch of what I'm trying to do:

After that is done, in another page we can just look at what we made whithout being able to drag and drop, and be able to click on each table and get details of the table selected

I have the database part done, I know how to do queries and all that stuff, what I don't know is how to make the EDIT page and save it somewhere and after that just consult what I just edited whithout moving the tables.
I have looked up at many JavaScript code that does the drag and drop, but it saves the position of the tables in a cookie and to be honest JavaScript is not one of my strengths. I hope someone can help me out on this one, or if you know a good tutorial page to do this I'd really appretiate it for you to post it here.
Thank you and forgive my English
I want to build a site for example to build a classroom. I have a CREATE CLASSROOM page, in which the teacher can sort of Draw the tables for the students of the classroom (an image of a circle) draging and droping them on the screen.
I made a quick sketch of what I'm trying to do:

After that is done, in another page we can just look at what we made whithout being able to drag and drop, and be able to click on each table and get details of the table selected

I have the database part done, I know how to do queries and all that stuff, what I don't know is how to make the EDIT page and save it somewhere and after that just consult what I just edited whithout moving the tables.
I have looked up at many JavaScript code that does the drag and drop, but it saves the position of the tables in a cookie and to be honest JavaScript is not one of my strengths. I hope someone can help me out on this one, or if you know a good tutorial page to do this I'd really appretiate it for you to post it here.
Thank you and forgive my English