Problem with "num-html" inside ajax request

Problem with "num-html" inside ajax request

ctct Posts: 9Questions: 0Answers: 0
edited December 2010 in Plug-ins
Hi, I'm having trouble with the numericHtmlSort plugin.

My datatable is currently initialized inside an ajax request, i.e.

[code]function getResults(Href){
ResultAjaxRequest = $.ajax({
type: "POST",
url: Href,
data: (),
success: function(html){
$("#result_set_container").show();
TableToolsInit.sSwfPath = "/media/swf/ZeroClipboard.swf";

oTable = $('#list').dataTable( {
"bProcessing": true,
"aLengthMenu": [[10, 50, 100, 1000, -1], [10, 50, 100, 1000, "All"]],
"iDisplayLength" : 100,
"aoColumns": [{ "sType": "num-html" },{ "sType": "num-html" },null,null,null,null,null,null,null, null],
"sDom": 'T<"clear"><"H"flrip>t<"F"ip>',
"sPaginationType": "full_numbers",
"sAjaxSource": SearchAjaxURL,
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.ajax( {
"dataType": 'json',
"type": "GET",
"url": sSource,
"data": (.....),
"success": fnCallback
} );
}
} );
},
error: function(){

}
});
}[/code]


Everything works fine WITHOUT the { "sType": "num-html" } column types. If I include them, the table starts to load and goes on forever. If I ditch "aoColumns", everything is fine.

Any ideas?
Thanks in advance.
This discussion has been closed.