Не могу получит ответ на ajax запрос..
ajax запрос:
CODE (javascript):
скопировать код в буфер обмена
скопировать код в буфер обмена
- $(document).ready(function(){
- function slideout(){
- setTimeout(function(){
- $("#response").slideUp("slow", function () {
- });
- }, 5000);}
- $("#response").hide();
- // page
- $(function() {
- $("#listPage ul").sortable({ opacity: 0.8, cursor: 'move', update: function() {
- var order = $(this).sortable("serialize") + '&updatePage=updatePage';
- $.ajax({
- type: "POST",
- dataType: "json",
- url: "/admin/listorder",
- data: order,
- success: function(response) {
- if (response.code == 'success')
- {
- $("#response").slideDown('slow');
- }
- slideout();
- }
- });
- }
- });
- });
- });