So I made my sortable list work with Prototype and Scriptaculous, but I'd
rather not depend on those two libraries along side jQuery, so in an attempt
to move it back over to jQuery my error occurs with the ajax request. This
function is what is used in the demo, and works great....

function update_order(){
        var options = {
                method : 'post',
                parameters : Sortable.serialize('list')
        };
 
    new Ajax.Request('classes/processor.php', options);
}

but this is what I'm using with jQuery and the Interface plugins, but it
isn't working. My guess is the serialization isn't working the same? Or the
data parameter isn't recognizing the array?

function serialize(s){
        serial = $.Sortserialize(s);
        return serial;
}
function update_order(){
        $.ajax({
                url: "classes/processor.php",
                type: "POST",
                data: serialize('list'),        
                complete: alert('complete'),
                success: alert('success'),
                error: alert('error')
        });
}

Anyone have any ideas?

-- 
View this message in context: 
http://www.nabble.com/sortable-lists-and-php-tf2068987.html#a5708278
Sent from the JQuery forum at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to