Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store nestedSortable into the Database #124

Open
iikun01 opened this issue Aug 2, 2018 · 2 comments
Open

Store nestedSortable into the Database #124

iikun01 opened this issue Aug 2, 2018 · 2 comments

Comments

@iikun01
Copy link

iikun01 commented Aug 2, 2018

Hi.. I'm in love with your nestedSortable.js.
I just wanna ask if it's possible to store the order of the nested list I created into the database?

@praveenscience
Copy link

Convert it into the array or serialised format, send it to the backend and update it by deserialising. :)

@syrsly
Copy link

syrsly commented Mar 27, 2019

Convert it into the array or serialised format, send it to the backend and update it by deserialising. :)

I can confirm that this not only works but is incredibly easy to accomplish with an ajax post. You can send the entire array as a post variable... assuming the amount of data is small enough. Then, your server side script can loop through the array elements and update the ones which have changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants