jQWidgets Forums

jQuery UI Widgets Forums Plugins Data Adapter undefine

This topic contains 2 replies, has 2 voices, and was last updated by  Dimitar 8 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    undefine Posts
  • undefine #85800

    famp
    Participant

    hello, that is indefinite

    var tpv= {
            datatype:"json",
            datafields:
                    [
                {name: 'tpv', type:'string'}
            ],
            
            
            url: 'listas/datos/lista_espera_peluqueros_datos.php'
           
        }; 
       var datatpv = new $.jqx.dataAdapter(tpv);
       
       alert(datatpv.tpv);
    undefine #85801

    famp
    Participant

    hello, that is indefinite

    
    var tpv= {
            datatype:"json",
            datafields:
                    [
                {name: 'tpv', type:'string'}
            ],
            
            
            url: 'listas/datos/lista_espera_peluqueros_datos.php'
           
        }; 
       var datatpv = new $.jqx.dataAdapter(tpv);
       
       alert(datatpv.name);
    undefine #85816

    Dimitar
    Participant

    Hello famp,

    We suggest you make such checks (alerts) in the data adapter’s loadComplete callback function (which is called when the data is fully loaded), e.g.:

    var tpv = {
        datatype: "json",
        datafields: [{
            name: 'tpv',
            type: 'string'
        }],
    
        url: 'listas/datos/lista_espera_peluqueros_datos.php'
    
    };
    var datatpv = new $.jqx.dataAdapter(tpv, {
        loadComplete: function() {
            alert('Data loaded.');
        }
    });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.