How do I save an order for the jQuery UI portlet plugin?

I am using the portlet plugin from jQuery UI

my question is:

Is it possible to preserve the order of the portlets in the database so that when the user returns, he can see that his portlets are sorted in the same order? How?

thanks

+1


a source to share


3 answers


I found a solution here



+4


a source


Well, I cannot answer your question, but I would suggest the following:

If the order of the portlets is not critical, use cookies to store the order instead of using a database. This will save you valuable space and productivity.



In addition, you can support users who are not logged in.

+1


a source


I made this method of saving cookies and saving it to database.

Database method is really the best method

When I saved the positions in the cookie box, the page would load and the cells had the default position, and then when the page finished reading the cookie, it would reorder the boxes of cookie data that made the page look really slow

0


a source







All Articles