Jump to content

drag&drop with php


avibitton

Recommended Posts

Hi

 

Im having a problem saving  drag &drop elements , i have 4 icons which need which need to be dragged to a specific div(lets call him room for example) , than i must save the position of this icons at that div , i know that i should use the div Id and than in one way or other to send his him to database , since i never done such thing before i dont know where to start , i got an Hint that i should use selector in jquery  instead of getElementById cause it more simple , and than save this div in database and when im doing refresh to the page i can see the same position of the icons as left before the refresh , it will be nice if someone can help me or guide me ,

 

in the file attachment the id of the div i need to save in the database  its "droppable "

 

thx  Avi .

18596_.php

Link to comment
Share on other sites

Hi

 

thx for the reply , but im new at php and jquery , what i need its to save to position of the icons which  i dropped for  the  next time i will view the page .

 

i dont know what is more easy: to get the position of the icons and send them to database , or send the  div(the html of the div) which will contain everything including the position of the icons.

 

honestly i dont know  how to get the position of the icons  and send it to database .

 

thx avi .

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.