I have a function with 4 parameter
function getToken(u, p, url, role) {
var that = this;
oururl = url;
$.ajax({
type: 'GET',
url: "/Base/getConfigUrl",
success: function (data) {
$.ajax({
type: 'GET',
async: false,
url: url + '?username=' + u + '&password=' + p,
success: 'callbackFunc',
error : 'callbackError',
contentType: "application/json",
dataType: 'jsonp'
});
}
});
and the call back function
function callbackFunc(resultData) {
// how to get the outer parameter
}
inside call back function I need to access role parameter I logged the this
variable and i can't find anything