Hi my page is splitted into grid rows and grid columns. In that i defined
some containers. Data in that containers is draggable and droppable to
another containers only . After all draggable and droppable operations, before
leaving the page i need to get the current order of elements/data and
need to update to database. i need to get container id and element id in sequence to update the sequence. Thanks in advance
Hi,
I wouldn’t do this before leaving the page, rather I would do this every time a user drops an element.
Are you using a library to implement the drag/drop functionality?
Don’t most browsers now limit beforeunload functionality so that you wouldn’t be able to check it then anyway?
I agree that the most appropriate place at which to save the data to the database is immediately after every drop.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.