Pass the result
as parameter to updatechart()
$.ajax
({
type: "POST",
url: "",
data: $("form").serialize(),
success: function(result)
{
updatechart(result);
}
});
then access the results via parameter.
function updatechart(result) {
//.......
//.......
console.log(result);
}
Hope you’re trying something like this.
Related Contents:
- jQuery Ajax POST example with PHP
- Abort Ajax requests using jQuery
- jQuery AJAX file upload PHP
- jQuery: Return data after ajax call success [duplicate]
- How do I POST urlencoded form data with $http without jQuery?
- Ajax request returns 200 OK, but an error event is fired instead of success
- How can I add a custom HTTP header to ajax request with js or jQuery?
- Upload multiple image using AJAX, PHP and jQuery
- Access Control Request Headers, is added to header in AJAX request with jQuery
- Convert JSON array to an HTML table in jQuery
- Refresh/reload the content in Div using jquery/ajax
- Sequencing ajax requests
- No ‘Access-Control-Allow-Origin’ header is present on the requested resource error
- What is the cleanest way to get the progress of JQuery ajax request?
- jQuery has deprecated synchronous XMLHTTPRequest
- What is AJAX and how does it work? [duplicate]
- Parallel asynchronous Ajax requests using jQuery
- Why is it a bad practice to return generated HTML instead of JSON? Or is it?
- What’s the best way to retry an AJAX request on failure using jQuery?
- How to upload a file using jQuery.ajax and FormData
- How to show progress bar while loading, using ajax
- Intercept all ajax calls?
- Upload base64 image with Ajax
- How do I verify jQuery AJAX events with Jasmine?
- How to set selected value of jQuery Select2?
- Jquery in React is not defined
- jQuery AJAX Call to PHP Script with JSON Return
- JSF/PrimeFaces ajax updates breaks jQuery event listener function bindings
- AJAX request to local file system not working in Chrome? [duplicate]
- console.log(result) prints [object Object]. How do I get result.name? [duplicate]
- What does “return false;” do?
- Javascript – Stop form submit depending on ajax response [duplicate]
- Ajax, prevent multiple request on click
- Using jQuery AJAX to download a binary file
- Ajax HEAD request via Javascript/jQuery
- Google Place API – No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘null’ is therefore not allowed access [duplicate]
- How to disable beforeunload action when user is submitting a form?
- Use JSONP to load an html page
- Use variable outside the success function from an ajax/jquery call
- Rails flash notice via ajax
- Jquery Ajax prevent fail in a deferred sequential loop
- Callback function for JSONP with jQuery AJAX
- Jquery getJSON populate select menu question
- jQuery ajax load() java script not executing?
- How to trigger jquery.ajax() error callback based on server response, not HTTP 500?
- Chain ajax and execute it in sequence. Jquery Deferred
- How to loop through Ajax Requests inside a JQuery When – Then statment?
- Upload file to my google drive with Google Apps Script (NO FORM IN GOOGLE)
- ‘append’ called on an object that does not implement interface FormData
- how to check confirm password field in form without reloading page