[jQuery] Re: how to display sortable list with new order

2009-07-04 Thread cs...@hotmail.com
thank you for your idea, that opens my mind really, but the webpage i created is dynamic, is there any easier way to do it? just wondering, the jquery ui sortable is support for sorting items, there must be some way to support display with customised order as well. I just couldn't finger it out, p

[jQuery] Re: how to display sortable list with new order

2009-07-04 Thread waseem sabjee
and from the data structure mentioned above we retrieve the rows holding two key field position and html $(function() { // we just create our items object var items = []; // create an array to hold our positions item.position = new Array(); // create an array to hold our html item.html =

[jQuery] Re: how to display sortable list with new order

2009-07-04 Thread cs...@hotmail.com
hi waseem, thx for your idea and really appreciate for doing it. what i want to know is how to display these toolbars-"div"s base on retrieved data from database. for example: orginal order div id=1 class=1 div id=2 class=2 div id=3 class=3 assume i retrieved data from database is array,which cont

[jQuery] Re: how to display sortable list with new order

2009-07-03 Thread waseem sabjee
lets just see the logic behind this. item item item item say we have item as mentioned above. METHOD 1 -- save to database : your table would be like so if you are using MYSQL ID INT(11) NOT NULL auto_increment, userID INT(11) NOT NULL, position TEXT NOT NULL, html TE