Solved

JQuery Drag and Drop Exact Position

Posted on 2011-02-13
5
1,015 Views
Last Modified: 2012-05-11
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!
0
Comment
Question by:doRodrigo
  • 3
  • 2
5 Comments
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 34886036
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 ?
0
 

Author Comment

by:doRodrigo
ID: 34886748
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!
0
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 34886875
Have you got any code already ?
0
 

Author Comment

by:doRodrigo
ID: 34886916
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!
0
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 500 total points
ID: 34886954
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hbo knew my windows software 4 60
xjs: how to get sum of value in for loop 2 18
binding event to form in window.open 9 35
ajax wont trigger twice without a page refresh 7 14
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question