Can not execute example "Getting the Value"

The example can not be executed. The object (result) is undefined. The code snippet is below. What's wrong?

dtable = webix.ui({
        view:"datatable", 
        columns:
        [
                        { id:"ID", header:"1" },
                        { id:"TITLE", header:"2", width:180 },
                        { id:"YEAR", header:"3", width:180 },
                        { id:"VOTES", header:"4", width:180},
                        { id:"RATING", header:"5", width:180 },
                        { id:"RANK", header:"6", width:180 }
                    ],

        data:
    [   { ID:1, TITLE:"The Shawshank Redemption", YEAR:1994, VOTES:678790, RATING:9.2, RANK:1}
    ]

});
        var record = dtable.getItem("The Shawshank Redemption");
        console.log(record);
                var title = record.TITLE;
                console.log(array);
        webix.ajax().post('test3b.php', { action : title }, function (text, xml, xhr) {
            console.log(text);
});

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!