I have set a global variable from the data coming from a jquery. and save that data in a global variable as :
var window.globalname = data; // variable value set in another ajax call
i want to send this global variable through another ajax call then how should i write ??
i have written :
type:'POST', // ajax call
url:'url'
data: {name="globalname"} or data :{name="$globalname"}
i want to know how to write this data ??
data: {name: window.globalname}