Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. dynamic handling of arrangements with ajax and c#

dynamic handling of arrangements with ajax and c#

Scheduled Pinned Locked Moved JavaScript
helpcsharpjsonquestion
1 Posts 1 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Raul Hernandez 2023
    wrote on last edited by
    #1

    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
                            });
                        }
    
    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups