Показать сообщение отдельно
  #6 (permalink)  
Старый 23.02.2014, 22:16
Кандидат Javascript-наук
Отправить личное сообщение для Vladislav Посмотреть профиль Найти все сообщения от Vladislav
 
Регистрация: 13.02.2013
Сообщений: 105

Переписал скрип, должно было работаеть, но увы...

$(function(){
   $('#middleCon').on('click', '.buttonDeistvie', function fight(fid, md5fid) {
    var form = $(this).closest('tr');
    
    $.ajax({
         type: "POST",
         url: "handlers/fight.php",
         data: {"fid": fid, "md5fid": md5fid},
         cache: false,
         success: function(response){
             var messageResp = new Array('Ошибка, попробуйте еще раз..');
             var resultStat = messageResp[Number(response)];
             if(response == 1){
                document.location.href = "/dragon/index#1";
             }
             else if(response == 100){
                document.location.href = "/dragon/index#100";
             }
             else{
                //form.find(".wrap_comment_block").html(response);
                //document.getElementById('ipolo') == response;
                //alert(response);
                form.find(".headerTable").html(response);
             } 
             }
    });
    return false;
});
});


P.S. alert работает.
Ответить с цитированием