DT won't load from Ajax Server Side request

DT won't load from Ajax Server Side request

fernandogarciawestfernandogarciawest Posts: 1Questions: 1Answers: 0
edited May 2015 in Free community support

I tried all day and i couldn't get DT to load my json. I can successfully pull data via the ajax request but it does not fill the table. any help would be greatly appreciated.

Here is my debug URL: http://debug.datatables.net/olajuj

Here is my code:

var agentInternalid = $('#ctl00_MainContentContainer_hdnCurrentAgentID').val();
var WebsiteTypeID = $('#ctl00_MainContentContainer_hdnWebsiteType').val();
$('#example').dataTable( {
    'ajax': {
        type: 'GET',
        url: '/uc2/lazyloadmethods.aspx/getLeads?recordcount=10&agentInternalID=' + agentInternalid + '&WebsiteTypeID=' + WebsiteTypeID,
        contentType: "application/json; charset=utf-8",
        cache: false,
        success: function (data) {
            console.log(data);
        },
    },
    "columns": [
        { "data": "dishLeadID" },
        { "data": "created" },
        { "data": "fullname" },
        { "data": "phone" },
        { "data": "email" },
        { "data": "leadType" },
        { "data": "Disposition" }
    ]
} );
This discussion has been closed.