[jQuery] Sortable Help

[jQuery] Sortable Help


I am sorting but the data being sent is in wrong format.
Response headers:


data =
entry[]=cf43c5caa5e&entry[]=1cb5758d6aa&entry[]=ee713a3034a&entry[]=d32cea34
83f
    
key =     entry_0[]

    
but it should be
entry[0]=cf43c5caa5e&entry[1]=1cb5758d6aa&entry[2]=ee713a3034a&entry[3]=d32c
ea3483f

script looks like

$("#sortable").sortable({
update: function() {
$.post('/manage/entries/order/', {
data: $("#sortable").sortable("serialize"),
key: 'entry_0[]'
});
}
});
Can someone point out where I went wrong?
Thanks

Dave





























    • Topic Participants

    • dave