我利用AjaxStart和AjaxStop jquery方法在通过Ajax发出要求时展示和隐藏装货信息。 如以下法典:
$( <div><img src="images/searching.gif" align="absmiddle" border="0" />Please Wait ...</div> )
.attr( id , loading )
.appendTo( body )
.ajaxStart(function() {
$(this).animate({
top : 40px ,
opacity : 1.0
}, 500);
})
.ajaxStop( function(){
$(this).animate({
top : -75px ,
opacity : 0.1
}, 500);
});
but I don t want this loading show for all requests and just show for some of specific request . are you have any Solution to the problem ?