Я использую датированную серверную загрузку AJAX. Вот почему я использовал обратный вызов.
$(".contentArea").load($('.contentArea').attr('id'), function(){
$('.datatable').dataTable( {
"bJQueryUI": true,
"sScrollX": "",
"bSortClasses": false,
"aaSorting": [[0,'asc']],
"bAutoWidth": true,
"bInfo": true,
"sScrollY": "100%",
"sScrollX": "100%",
"bScrollCollapse": true,
"sPaginationType": "full_numbers",
"bRetrieve": true,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": $('.datatable').attr('id'),
"fnDrawCallback": function(){
$(".contentEditor").click(function() {
$(".contentArea").load($('.contentEditor').attr('id'), function(){
$( "select, input:checkbox, input:radio, input:file").uniform(),
$( ".datepicker" ).datepicker({dateFormat: 'yy-mm-dd' }),
$("#validation").validationEngine(),
$('input[title]').tipsy(),
$('textarea.tinymce').tinymce({
// Location of TinyMCE script
script_url : '../scripts/tinyeditor/tiny_mce.js',
// General options
theme : "advanced",
plugins : "table,advhr,advimage,advlink,inlinepopups,preview,media,paste,fullscreen,visualchars,xhtmlxtras",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,blockquote,|,forecolor,backcolor",
theme_advanced_buttons2 : "formatselect,fontselect,fontsizeselect,|,removeformat,|,hr,|,undo,redo,|,sub,sup,|,charmap,|,cite",
theme_advanced_buttons3 : "tablecontrols,|,link,unlink,anchor,|,image,preview,media,|,cleanup,code,fullscreen",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
});
});
});
}});
});