Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

can we call ajax inside ajax success

$.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) {
   
            }
        });
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #ajax #ajax #success
ADD COMMENT
Topic
Name
8+3 =