Order images with jquery-ui shortable |
[eluser]Lykos22[/eluser]
Hi I 'd like some help please, as my skills in jquery are not so good. What I want to achieve is to change the order of the images like this example. My database looks like this: Code: table: Gallery I have also created these 2 views: - index.php Code: <!-- will display the ajax result --> - order_ajax.php Code: <?php if(count($images)>0): ?> I have also created and the order_ajax controller Code: public function order_ajax(){ So what I basicly want to do is to drag the images arround in order to change their order, and when I click the save button pass the (new) data/order to the controller and to store them in the database. How can I make this work? any help would be appreciated. |
Messages In This Thread |
Order images with jquery-ui shortable - by El Forum - 02-05-2014, 03:25 AM
Order images with jquery-ui shortable - by El Forum - 02-05-2014, 03:38 AM
Order images with jquery-ui shortable - by El Forum - 02-05-2014, 04:25 AM
Order images with jquery-ui shortable - by El Forum - 02-05-2014, 06:09 AM
Order images with jquery-ui shortable - by El Forum - 02-05-2014, 06:38 AM
|