DataTables with MVC3, NHibernate, AJax
DataTables with MVC3, NHibernate, AJax
I'd like to reload my DataTables with a different set of data using the following:
[code]
$(test).click(function () {
$.getJSON("../GetProjectViaAjax", null, function (data) {
[quote]The next 3 lines works, but needs to be replaced with ???[/quote]
$.each(data, function (index, car) {
alert(car.DrawnBy)
});
});
}
[/code]
The GetProjectViaAjax works properly - it returns a correctly formatted JSON object.
I just need a little help getting the DataTable updated from here.
[code]
$(test).click(function () {
$.getJSON("../GetProjectViaAjax", null, function (data) {
[quote]The next 3 lines works, but needs to be replaced with ???[/quote]
$.each(data, function (index, car) {
alert(car.DrawnBy)
});
});
}
[/code]
The GetProjectViaAjax works properly - it returns a correctly formatted JSON object.
I just need a little help getting the DataTable updated from here.
This discussion has been closed.