get data in ajax |
[eluser][email protected][/eluser]
hi guys can someone help me. i'm trying to call the data that passes through this ajax method. how can i get data in controller? Thanks a lot Code: $( "#sortable" ).sortable({
[eluser]Pert[/eluser]
Data should be an object, so Code: data = [];
[eluser][email protected][/eluser]
Hi @pert thank you for you response. then how can i get it using controller? Thank you.
[eluser]Pert[/eluser]
Code: class admin extends CI_controller Looking at your code and what it does, you might want to add everything into single POST variable with data<b>['sortorder']</b>[li.attr("id")] = i; Then you can easily loop through $this->input->post(<strong>'sortorder'</strong>);
[eluser][email protected][/eluser]
Thanks a lot will try it later and get back to if will work. thank you Pert |
Welcome Guest, Not a member yet? Register Sign In |