Link to home
Start Free TrialLog in
Avatar of doRodrigo
doRodrigoFlag for New Zealand

asked on

JQuery Drag and Drop Exact Position

Hi folks, I'm trying to build a system that will permit you to drop certain icons that will be placed on the left of the screen on the main part of the site and it will remember where you dropped it. My idea is that each of the dropped icons create a record on the mySql database and that after I click it it will open a mySql update field for me to fill the data of the record. But first things first, I need it to be able to drop the icons and remember the places of each of the icons and also make sure I can take several copies of the same icon...

Any insight? I tried looking for the posted answers but nothing I found did it this way... Any help would be appreciated, code also would be much appreciated.

Cheers!
Avatar of Lukasz Chmielewski
Lukasz Chmielewski
Flag of Poland image

I assume you consider using this of course
http://jqueryui.com/demos/droppable/
So you need to use the position variables and then fire ajax ?
Avatar of doRodrigo

ASKER

Yes, Roads_Roads, something like this definitely. But I need it to trigger an ajax when it is dropped and also need it to create a copy when I drag instead of dragging it per se, permiting to place several copies of the same object.

Cheers!
Have you got any code already ?
Nope, I needed to see if it was possible before spending too many man/hours of work to it. Any example code would be helpful. The intended site would do something like put several icons on the right and allow the user to drag a copy of the icon in the left area, and this new icon should be recorded into the database when dropped as well as his position...

Thanks in advance for the attention.

Cheers!
ASKER CERTIFIED SOLUTION
Avatar of Lukasz Chmielewski
Lukasz Chmielewski
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial