jquery ajaxStart/Complete触发器其他过程

jquery ajaxStart/Complete触发器其他过程,jquery,Jquery,我有三个ajaxStart程序在同一页中。第一个:main,第二个在main中打开,第三个在second中打开。所以我使用live函数。这里没有问题 这是我的密码: 第二程序: 这是第三个程序: 问题是: 第二个AJAX启动/完成功能不工作。当我单击postercek时,第一个功能是使用filminfo ajaxStart。但结果是真的,它显示$'posterbilgisi'.htmlajaxReply。只有装载程序有错误。我该怎么办 我哪里出错了?我很困惑…这个问题不是很清楚 第一个代码段试图

我有三个ajaxStart程序在同一页中。第一个:main,第二个在main中打开,第三个在second中打开。所以我使用live函数。这里没有问题

这是我的密码:

第二程序:

这是第三个程序:

问题是:

第二个AJAX启动/完成功能不工作。当我单击postercek时,第一个功能是使用filminfo ajaxStart。但结果是真的,它显示$'posterbilgisi'.htmlajaxReply。只有装载程序有错误。我该怎么办


我哪里出错了?我很困惑…

这个问题不是很清楚


第一个代码段试图将函数绑定到filminfo元素的ajaxStart事件-不是

我不确定,但您没有结束$.ajax{在'second Proceure'内部。这是复制/粘贴错误,还是您的代码中确实存在此错误?不,我已结束它。这里没有问题。问题:单击第三个链接Postercek会触发第二个链接Filmadres ajaxStart过程。ajax正常工作,我得到结果,但ajaxStart是second的过程。
$('#filmadres').live('click',function(event){
event.preventDefault();

    $.ajax({
//procedure

        success: function(ajaxCevap) {
            $('#filminfo').html(ajaxCevap);
            $('#filminfo').show();
        }
});

    $('#filminfo').bind('ajaxStart',function(){

        $('#filmlist').unbind('ajaxStart');
        $('#loading2').html('<img src="harici/ajax-fb-loader.gif" />');
        $('#loading2').show();

    });

    $('#filminfo').bind('ajaxComplete',function(){

        $('#filmlist').unbind('ajaxStop');
        $('#loading2').hide();
        $('#filminfo').show(1000);

    });
$('#postercek').live('click',function(event){
        event.preventDefault();

$.ajax({
//procedure

    success: function(ajaxReply) {
                $('#posterbilgisi').html(ajaxReply);
            }

        });

$('#posterbilgisi').bind('ajaxStart',function(){

    $('#filminfo').unbind('ajaxStart');
    $('#posterloading').html('<img src="harici/ajax-fb-loader.gif" />');
    $('#loading2').css('display','none');
    $('#posterloading').css('display','block');

}); 

$('#posterbilgisi').bind('ajaxComplete',function(){

    $('#filminfo').unbind('ajaxComplete');
    $('#posterloading').css('display','none');

});