You don't have any problems here - ajaxSubmit can use all the options that $.ajax can, so all you need to do is place a "complete" callback in your ajaxSubmit options. As far as I can tell from the docs, the "complete" callback is your only option as it gets the XHR object as a parameter - but you will need to check that the request was a success if you use this callback (it will be called even if the request fails).
Peter dnagir wrote: > > > Hi, > > So the XHR is ONLY available from $.ajax and there's really no way to > get it from methods ($.post)? > I actually need this data in the ajaxSubmit callback of AjaxForm plug- > in. > > This sounds like I have no option except to abandon the plug-in and do > the work manually (or modify it)? > > Cheers. > > -- View this message in context: http://www.nabble.com/Determine-content-type-in-%24.post-callback-tp24371141s27240p24494117.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.