[jQuery] jqmodal and jquery ajax request on the same page

[jQuery] jqmodal and jquery ajax request on the same page


I have one jqmodal window with ajax source (and ajaxText 'waiting'
message), and one div with form- with ajax onSubmit.
When I click on a link to show my modal window, my dynamic div is also
updated with its own ajax-'waiting' message. How can I make this two
independent? Below is my script for form submitting:
function finishAjax(id, response) {
$('#'+id).html(unescape(response));
$('#'+id).fadeIn();
}
function SendcForm(){
$('#contactform').ajaxStart(function() {
$(this).html("waiting html");
});
$.post("/ajax/cform", { email: $('#email').val(), message: $
('#message').val()},
function(response){
$('#contactform').fadeOut();
setTimeout("finishAjax('contactform', '"+escape(response)+"')",
400);
});
return false;
}
Thanks.