Clash between tinyMCE popup and DataTables with server side processing -


i need have table (with thousands of rows) inside tinymce popup, user can filter / select row , insert editor window. have datatables, server side processing , filtering. relevant code is

<script type="text/javascript" src="../../tiny_mce_popup.js"></script> <script type="text/javascript" src="js/dialog.js"></script> <script type="text/javascript" charset="utf-8">     $(document).ready( function() {     var resptable = $('#resp_table').datatable({         "bprocessing": true,         "bserverside": true,         "sajaxsource": 'insert_resp.php',         ... 

..etc.

the json response good,

"secho":"1","itotalrecords":"18783","itotaldisplayrecords":"18783","aadata":[["0","1","2","3","4","5"],["0","1","2","3","4","5"]] 

it works perfectly, but if exclude tinymce popup script allows result editor window:

<!--<script type="text/javascript" src="../../tiny_mce_popup.js"></script>--> <script type="text/javascript" src="js/dialog.js"></script> <script type="text/javascript" charset="utf-8">     $(document).ready( function() {     var resptable = $('#resp_table').datatable({         "bprocessing": true,         "bserverside": true,         "sajaxsource": 'insert_resp.php',         ... 

this way of course 'tinymcepopup not defined' error pops out, table works.

without commenting out, there no errors in console, no warnings, xhr request , response same, datatables shows 'processing' , table not populated data.

and if include response directly table init, works, too:

<script type="text/javascript" src="../../tiny_mce_popup.js"></script> <script type="text/javascript" src="js/dialog.js"></script> <script type="text/javascript" charset="utf-8">     $(document).ready( function() {     var resptable = $('#resp_table').datatable({         "bprocessing": true,         "bserverside": true,         "sajaxsource": 'insert_resp.php',         "secho":"1","itotalrecords":"18783","itotaldisplayrecords":"18783","aadata":[["0","1","2","3","4","5"],["0","1","2","3","4","5"]],         ... 

with last bit of script, 1 think json response faulty, works fine when comment out first (tinymce popup) line..

also, in tinymce plugins folder, in /js/dialog.js, 1st line

tinymcepopup.requirelangpack(); 

if comment out, datatables work.. inside en_dlg.js refers to, is

tinymce.addi18n('en.linktest_dlg',{   //title : 'title',   //insert : 'insert it',   //cancel : 'back' }); 

commented out or not, seems culprit. isn't weird..

could teach me happening here? i've spent 3 days scratching head, hurts..


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -