views:

26

answers:

1

means, do sth, then request using jQuery, like a hooker. How can i do this?

+1  A: 

Use $.ajaxSetup() for this

Full documentation here

For example:

$.ajaxSetup({
    beforeSend: function() {
       //do something, like show 'Requesting....'
    }
});
Nick Craver