that is my ajax call:
function getEle(id) {
var element = new Array();
$.ajax({
async: false,
url: "map.php",
type: "POST",
dataType: 'json',
data: {
"id": id
},
success: function (data) {
var resultArr = new Array();
var resultArr = data;
var state = new Array();
for (var s = 0; s < resultArr.length; s++) {
state[s] = resultArr[s];
element[s] = id;
element[s] = state[s];
}
},
error: function (jqXHR, textStatus, errorThrown) {
}
});
return element;
}
Have some solution kindly post it..... thanks in advance....
you can use window.location
in javascript.
success: function (data) {
var resultArr = new Array();
var resultArr = data;
var state = new Array();
for (var s = 0; s < resultArr.length; s++) {
state[s] = resultArr[s];
element[s] = id;
element[s] = state[s];
}
window.location = "yourpage address";// add this line
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.