Draggable Jquery - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Draggable Jquery (/showthread.php?tid=66864) |
Draggable Jquery - sheenam - 12-12-2016 Hi all, i have made an application in which i have used the draggable fields. what i actually want is that i want to save the position of the draged section. please help me to solve that problem. my code is as below:- VIEW: PHP Code: <div class="col-lg-2 connectedSortable"> i want to drag the section to other stages and save the value oin database i m not finding a headway how to do that. kindly help. how can i code for model and controller . just want basic idea. i am not understanding how it can be done. thanks in advance RE: Draggable Jquery - InsiteFX - 12-12-2016 See This RE: Draggable Jquery - sheenam - 12-12-2016 (12-12-2016, 09:56 AM)InsiteFX Wrote: See This Hi dear, the boxes arent getting dragged. RE: Draggable Jquery - InsiteFX - 12-13-2016 Did you download and add the jQuery UI? You need to incluse it just like jQuery. RE: Draggable Jquery - sheenam - 12-14-2016 (12-13-2016, 05:05 AM)InsiteFX Wrote: Did you download and add the jQuery UI? hi dear, i need to save the position of the draggable section. and update the database values accrdingly. i have included the jqueries the sections i m able to drag but i need to save the position. thanks in advance RE: Draggable Jquery - InsiteFX - 12-14-2016 The d.dragable is were they are saving the json positions to the browser local storage. You would need to change that to do an ajax call to a method in your controller to save the positions to the database. This is for a mouse position you would need to change it to the dragged positions. Write the php to access a CI Controller method to get and save. Simple Draggable Element Persistence with jQuery |