Uncaught TypeError: Cannot read property 'length' of undefined?

Uncaught TypeError: Cannot read property 'length' of undefined?

yahargayaharga Posts: 2Questions: 1Answers: 0
edited June 2014 in Free community support

Alright, so, my JSON is too long to post on here, so, I'll just post the AJAX call and would like to ask what is wrong with it?

        $('#MainContentPlaceHolder_business_return_flights').dataTable({
            "ajax": {
                "url": "Browse.aspx/GetBusinessFlights",
                "type": "POST",
                "contentType": "application/json; charset=utf-8",
                "dataType": "json"
            }
        });

Also, I was wondering if I could pass data into the AJAX call. I couldn't do it, no matter how many different ways I tried.

Here's a link to more details of my problem: http://stackoverflow.com/questions/24007470/how-to-pass-ajax-data-in-datatables-jquery-plugin/

Answers

This discussion has been closed.