Welcome Guest, Not a member yet? Register   Sign In
get data in ajax
#1

[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({
                update: function(){
                
                            stringDiv = "";
                            $("#sortable").children().each(function(i) {
                              var li = $(this);
                             if(li.attr("class") == "ui-state-default"){
                              stringDiv += " "+li.attr("id") + '=' + i + '&';
                              }
                            });
                            
                             $.ajax({
                               type: "POST",
                               url: "<?=base_url().'admin/updatelist/'?>",
                               data: stringDiv,
                               success: function(msg){
                                 $( "#dialog" ).dialog();
                                 console.log(stringDiv);
                                    // [removed].reload( true );
                               }
                             });

                        }

            });


Messages In This Thread
get data in ajax - by El Forum - 06-24-2013, 12:56 AM
get data in ajax - by El Forum - 06-24-2013, 02:42 AM
get data in ajax - by El Forum - 06-24-2013, 02:43 AM
get data in ajax - by El Forum - 06-24-2013, 02:47 AM
get data in ajax - by El Forum - 06-24-2013, 02:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB