?
Solved

JQuery Drag and Drop Exact Position

Posted on 2011-02-13
5
Medium Priority
?
1,021 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 total points
ID: 34886954
0

Featured Post

Command Line Tips and Tricks

The command line is a powerful tool at the disposal of every Linux user. Although Linux distros come with beautiful user interfaces, it's worthwhile to learn the command line because it allows you to do a number of things that you otherwise cannot do from the GUI.  

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

765 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