You must Sign In to post a response.
  • Category: JavaScript

    Datatable object from ajax call javascript object

    How can I access a datatable from a javascript object, where the datatable is returned through an ajax call ?
  • #763358
    You can handle all the object in the ajax call. In the following sample handle the object "WORecord"

    success: function (result) {
    var resultObject = JSON.parse(result);
    var text = resultObject.d;
    var jsonObject = JSON.parse(text);
    if (jsonObject.WORecord.WOHDR[0].ACTI == 'E') {

    By Nathan
    Direction is important than speed

  • #763424

    type: "POST",
    url: 'abc/Getdata',
    data: {},
    contentType: "application/json; charset=utf-8",
    dataType: 'json',

    success: function (data) {
    var objdata = $.parseJSON(data.d);


    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM

Sign In to post your comments