Jquery .post not working on one function, working on another
<p>I have two functions to submit to different sets of data to the same page. One function works fine, but the other doesn't send the post data. Here is the code:</p>

<pre><code>    function sortManufacturer() {
        showLoading();
        var orderList = '';
        orderedNodes = document.getElementById("sortable_list").getElementsByTagName("li");
            for (var i=0;i &lt; orderedNodes.length;i++) {
                orderList += orderedNodes[i].getAttribute('recordid') + ',';
            }
$.post( 'save_sort_order.php', {type:'manufacturer', order: orderList},
        function() {
        hideLoading();
        $( ".saved" ).dialog( "open" );
        }
);}
    function editManufacturer() {
        showLoading();
        var fields = $("form#edit_manufacturer").serializeArray();
$.post( 'save_sort_order.php', {manActive: fields},
        function(data) {
        hideLoading();
        $( ".saved" ).dialog( "open" );
        }
);}
</code></pre>

<p>This doesn't work either, no alert saying success and no alert throwing an error. Just reloads the page.:</p>

<pre><code>    function editManufacturer() {
    $.ajax({
    type: "POST",
    url: "save_sort_order.php",
    data: "hey",
    success: function(){
        alert("success");
   }, 
   error: function(request, status, error) {
       var result = JSON.parse(request.responseText);
        alert(result.message);
   }
});
    }
</code></pre>

<p>No post data is being sent in Firebug under the Net panel. The first function works fine, the second is the one not being sent. If I put alert("after"); after the $.post right before the closing } of the function, it works fine.</p>
