[jQuery] How to do ajax load div?

[jQuery] How to do ajax load div?


I want to know how to add a ajax load div to my ajax call?
[code]
$.ajax({
    url: href,
    type: 'GET',
    dataType: 'html',
    timeout: 1000,
    error: function(){
        alert('Error loading document');
    },
    success: function(html){
        // do something with the data
    }
});
[/code]
How do I make jQuery say "WhenAjaxLoading" and "WhenAjaxStopLoading"
and how do I stop all ajax processing with the "Escape" key?
Thanks.


















    • Topic Participants

    • zmt98