I am trying to convert some code from PHP to ASP and got about 99% through it and have an error on one line.
On page sort.asp there is code that allows the user to drag a list of items around to put them in order. Each time they drag an item it uses script to push the new location to update.asp where code will update a database with the new list order.
My problem is that the POST data is not coming across.
sort.asp uses this...
update.asp uses this to pull the POST data, but I have checked and it is getting nothing...Code:<script> $(document).ready( function() { $("#sortme").sortable({ update : function () { serial = $('#sortme').sortable('serialize'); $.ajax({ url: "update.asp", type: "post", data: serial, error: function(){ alert("theres an error with AJAX"); } }); } }); } ); </script>
strMenu = Request.Form("menu")


Reply With Quote

Bookmarks