I found out it's because I need an existing element for option "target". I didn't want any element to be updated by the result, that's why I put this #dummy pointing to nowhere. Well, I added an element display:none in my Html and point it to that one ...
debussy007 wrote: > > Hi, > > it seems that my success callback is not getting executed, however, the > Ajax post seems to be ok (200) with the correct text output ... > The other params have effect, e.g. the ajax calls will be synchronous > (option async to false) > > $('td[id^=order]').each(function(i) { > var tdId = $(this).attr('id').substring(5, $(this).attr('id').length); > var options = { > target: '#dummy', > beforeSubmit: function(formData, jqForm, options) { return > true; }, > success: > function(responseText, statusText) { > alert('test'); // not executed > }, > type: 'post', > timeout: 30000, > async: false, > error: function(xhr, status, ex) {} > }; > $(this).find('form:first').ajaxSubmit(options); > }); > > Anyone has an idea ? > Thank you for any help ! > -- View this message in context: http://www.nabble.com/Form-plugin---success-callback-not-executed---tp24082230s27240p24082718.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.