I found a solution: ajaxStart is global... But why? I am new to jquery, and really don't understand why
$('#contactform').ajaxStart(function() { is not attached to #contactform? Please tell me who needs to update all ajax placeholders during ajax request? Funny... ...And thanks for your help ;) On Jul 11, 6:36 pm, Kassan <[EMAIL PROTECTED]> wrote: > 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?