Solved

JQuery Drag and Drop Exact Position

Posted on 2011-02-13
5
1,003 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now