my friends I have a problem with the dynamic handling of arrangements with ajax and c# I use the arrangements to complement the data of people, status and stores located in the same state in ajax I try to perform the dynamic reloading of the states and the stores but with the stores when clicking on the n+1 person the lists of all the people are reloaded I show you my code:
for (var j = 0; j < arregloTiendas.length; j++) {
// for (var j = i; j < arregloTiendas.length; j++) {
var rY = 1;
$.ajax({
url: SRL.common.fn.getApplicationPath() + '/Estados/getUsoTiendas',
type: 'POST',
dataType: 'json',
data: { tipoPersona: rY, TiendasReceptor: num },
success: function (json) {
$('#usoFiscall li').each(function (indices, elementosTres) {
var regimenFis = $(elementosTres).text();
arregloTiendas.push(Tiendas);
});
concatOption(json, arregloTiendas\[j\], 'Value', 'Text');
},
error: function (jqXHR) {
if (jqXHR.status === 500) {
alert('Ocurrio un error, intente nuevamente.')
}
else if (jqXHR.status === 200) {
alert('Su sesión ha expirado, ingrese nuevamente');
location.href = SRL.common.fn.getApplicationPath() + '/Tiendas?subImpId=' + (SRL.cuentas.dutyType === 20 ? '2' : '1');
}
},
complete: SRL.common.fn.waitPage.hide
});
}