Here is an example:
$.ajax({
type: "post",
url: "ajax/example.php",
data: 'page=" + btn_page,
success: function (data) {
var a = data; // This line shows error.
$.ajax({
type: "post",
url: "example.php",
data: "page=" + a,
success: function (data) {
}
});
}
});
Related Contents:
- Sending multipart/formdata with jQuery.ajax
- How to get a cross-origin resource sharing (CORS) post request working
- How to parse JSON data with jQuery / JavaScript?
- Why is jQuery’s .ajax() method not sending my session cookie?
- What’s the point of the X-Requested-With header?
- Jquery Ajax Posting JSON to webservice
- jQuery and AJAX response header
- Access-Control-Allow-Origin error sending a jQuery Post to Google API’s
- jQuery Call to WebService returns “No Transport” error
- jQuery read AJAX stream incrementally?
- Pass array to ajax request in $.ajax() [duplicate]
- Pass request headers in a jQuery AJAX GET call
- Ajax tutorial for post and get [closed]
- json Uncaught SyntaxError: Unexpected token :
- SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3
- TypeError: $.ajax(…) is not a function?
- jQuery: serialize() form and other parameters
- Submit form using AJAX and jQuery
- JQuery – Storing ajax response into global variable
- CORS header ‘Access-Control-Allow-Origin’ missing
- Queue ajax requests using jQuery.queue()
- how to access the $(this) inside ajax success callback function
- Rotating a Div Element in jQuery
- Calling a ‘WebMethod’ with jQuery in ASP.NET WebForms
- Jquery Ajax Loading image
- jquery click doesn’t work on ajax generated content
- Detecting no results on jQuery UI autocomplete
- Problems with Google Maps API v3 + jQuery UI Tabs
- Ajax request with JQuery on page unload
- jQuery validator and a custom rule that uses AJAX
- How do I make jQuery wait for an Ajax call to finish before it returns?
- jQuery ajax inside a loop problem
- replace div content using ajax and jquery
- how to send multiple data with $.ajax() jquery
- JQUERY ajax passing value from MVC View to Controller
- How to load a Google Maps map inside of a hidden element
- Synchronous XMLHttpRequest warning and
- How to export all rows from Datatables using Ajax?
- What is the best way of showing progress on an Ajax call?
- jquery html() strips out script tags
- File Upload via AJAX within JQuery
- What are the drawbacks of using synchronous ajax call?
- Display PNG image as response to jQuery AJAX request
- Using jQuery to grab the content from CKEditor’s iframe
- What is the difference between XMLHttpRequest, jQuery.ajax, jQuery.post, jQuery.get
- HTML Web Worker and Jquery Ajax call
- JQuery AJAX Consume SOAP Web Service [closed]
- Synchronous calls with jquery
- How to send a correct authorization header for basic authentication
- How to Set Selected value in Multi-Value Select in Jquery-Select2.?