I have a draggable element and I would like to call PHP function each time the element is dropped (basically to save its position – pixels from top and left to mysql database). How to approach it? AJAX?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EDIT
If you want the id of the draggable (and not what it was dropped on), you need to use the
uiparameter when you setup thedropcallback: