Search
 
SCRIPT & CODE EXAMPLE
 

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) {
   
            }
        });
    }
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript convert date from mm/dd/yyyy to yyyymmdd 
Javascript :: p5js click on button 
Javascript :: javascript promise example basic 
Javascript :: loop through json array python 
Javascript :: add 1 year to given date in javascript 
Javascript :: get param is react 
Javascript :: store with redux-thunk 
Javascript :: find highest number in array javascript 
Javascript :: js read a ini file 
Javascript :: nodejs: http:send HTML to the Browser 
Javascript :: slice string js 
Javascript :: trigger a function inside child from parent vue 
Javascript :: yarn add next auth 
Javascript :: javscript match word in string 
Javascript :: how to watch for changes within a prop in vue 
Javascript :: form validation jquery input array 
Javascript :: javascript remove object from array 
Javascript :: js push array into array 
Javascript :: react key press hook 
Javascript :: post api in next.js 
Javascript :: javascript connect metamask 
Javascript :: http header express 
Javascript :: Download Node Module With NPM 
Javascript :: express session 
Javascript :: price range slider bootstrap 4 
Javascript :: prevent duplicate entries in javascript array 
Javascript :: acheck angular version 
Javascript :: How to make HTML input tag only accept numerical values? in jsx 
Javascript :: javascript find the longest string in array 
Javascript :: split string to char js 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =