Welcome Guest, Not a member yet? Register   Sign In
Newbie: How do I send multiple arrays from my view to my controller?
#4

[eluser]John Morton[/eluser]
Thank you very much for the help! Here's where I ended up and it works.

Code:
function serialize(s)
{
    // I used .hash to turn return a text string which I explode into arrays in the model
        myorder = $.SortSerialize(s).hash;
    myhidden = $.SortSerialize('Inactive').hash;
    myvisible = $.SortSerialize('Active').hash;
    var myinfo=new Array()
    var myinfo = {
        'order' : myorder,
        'hidden' : myhidden,
        'visible': myvisible
    }
    $.post('<?=base_url()?>index.php/admin/updateOrder', myinfo, foobar);
};

function foobar() {
    alert("This works thanks to inparo.");
}


Messages In This Thread
Newbie: How do I send multiple arrays from my view to my controller? - by El Forum - 04-02-2008, 01:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB