I want to execute the javascript part after the ajax response has been processed. The javascript function is generated dynamically during an ajax request and is in the ajax response. "complete" and "successful" events, so as not to do the job. I checked the ajax request in the Firebug console and the response was not processed when the full callback is executed.
Does not work: function reloadForm() { jQuery.ajax({ url: "<generate_form_url>", type: "GET", complete: custom_function_with_js_in_response() }); };
ajaxComplete does the job, but it runs for all ajax calls on the page. I want to avoid this. Is there a possible solution?
$('#link_form').ajaxComplete(function() { custom_function_with_js_in_response(); });
javascript jquery
amit_saxena
source share