Hi,

I use jqmodal window with with ajax content + ajaxText for 'waiting'
html, and a dynamic div with form submit:

function finishAjax(id, response) {
$('#'+id).html(unescape(response));
$('#'+id).fadeIn();
}

function SendcForm(){
$('#contactform').ajaxStart(function() {
 $(this).html("wait...");
 });
   $.post("/ajax/cform", { email: $('#email').val(), message: $
('#message').val()},
function(response){
        $('#contactform').fadeOut();
       setTimeout("finishAjax('contactform', '"+escape(response)+"')",
400);
     });
return false;
}

When I click to view jqmodal window, my 'contactform' div is updated
with ajax "waiting" message. How can I make this two independent?

Reply via email to