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
https://forums.phpfreaks.com/topic/264122-dragdrop-with-php/
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
https://forums.phpfreaks.com/topic/264122-dragdrop-with-php/#findComment-1353739
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.