Actually scratch that - it was staring me right in the face... For anyone else who is interested, use:
$.ajax({ type: 'POST', url: , beforeSend: function () { // show load message }, success: function (msg) { // message to display on success }, error: function (msg) { // message to display on error }, complete: function () { // hide load message } }); Sometimes I just get in my own way! On Dec 17, 5:23 am, Mark <marksr...@gmail.com> wrote: > I have two Ajax methods in a page. The first handles the loading of > html content in response to a user 'click' event, the second in > response to a form submission. I want to have a 'loading...' message > appear for the form submission but not the html load. But when I fire > the html load event, the 'loading...' message appears above the form. > > How can I separate the ajaxStart() event for two different Ajax > methods on the same page? > > Cheers, > Mark